diff options
author | Johns <johns98@gmx.net> | 2012-04-11 18:20:08 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-04-11 18:20:08 +0200 |
commit | deea34eb5e2fbdbba72b8a9d4c132ad57b087ea8 (patch) | |
tree | 6777bed60a6b15561d5ad7d86d325f8cc923ee5b /softhddevice.cpp | |
parent | 1f14af659067ca51b827bd61187aa94ec21d69b7 (diff) | |
download | vdr-plugin-softhddevice-deea34eb5e2fbdbba72b8a9d4c132ad57b087ea8.tar.gz vdr-plugin-softhddevice-deea34eb5e2fbdbba72b8a9d4c132ad57b087ea8.tar.bz2 |
Show message for hot-keys.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index 5f5a764..a9c19a8 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -837,20 +837,33 @@ static void HandleHotkey(int code) switch (code) { case 10: // disable pass-through CodecSetAudioPassthrough(ConfigAudioPassthrough = 0); + Skins.QueueMessage(mtInfo, tr("pass-through disabled")); break; case 11: // enable pass-through CodecSetAudioPassthrough(ConfigAudioPassthrough = 1); + Skins.QueueMessage(mtInfo, tr("pass-through enabled")); break; case 12: // toggle pass-through CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1); + if (ConfigAudioPassthrough) { + Skins.QueueMessage(mtInfo, tr("pass-through enabled")); + } else { + Skins.QueueMessage(mtInfo, tr("pass-through disabled")); + } break; case 13: // decrease audio delay ConfigVideoAudioDelay -= 10; VideoSetAudioDelay(ConfigVideoAudioDelay); + Skins.QueueMessage(mtInfo, + cString::sprintf(tr("audio delay changed to %d"), + ConfigVideoAudioDelay)); break; case 14: // increase audio delay ConfigVideoAudioDelay += 10; VideoSetAudioDelay(ConfigVideoAudioDelay); + Skins.QueueMessage(mtInfo, + cString::sprintf(tr("audio delay changed to %d"), + ConfigVideoAudioDelay)); break; case 20: // disable full screen @@ -1796,12 +1809,10 @@ static const char *SVDRPHelpText[] = { " 12: toggle audio pass-through\n" " 13: decrease audio delay by 10ms\n" " 14: increase audio delay by 10ms\n" - " 20: disable fullscreen\n" - " 21: enable fullscreen\n" + " 20: disable fullscreen\n 21: enable fullscreen\n" " 22: toggle fullscreen\n", - " 30: stretch 4:3 to 16:9\n" - " 31: letter box 4:3 in 16:9\n" - " 32: center cut-out 4:3 to 16:9\n", + " 30: stretch 4:3 to 16:9\n 31: letter box 4:3 in 16:9\n" + " 32: center cut-out 4:3 to 16:9\n" " 39: rotate 4:3 to 16:9 zoom mode\n", NULL }; |