summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-04-07 00:15:57 +0200
committerJohns <johns98@gmx.net>2012-04-07 00:15:57 +0200
commit30d45864489ef1c741e575b7104f819ead84b9cd (patch)
tree125665cd0729fc02062cc1304e72425a8e872542 /softhddevice.cpp
parentaa4debc9c8a31c478bb8c9983c669a21b3afd6d3 (diff)
downloadvdr-plugin-softhddevice-30d45864489ef1c741e575b7104f819ead84b9cd.tar.gz
vdr-plugin-softhddevice-30d45864489ef1c741e575b7104f819ead84b9cd.tar.bz2
Change audio/video delay with hot-key.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index a94aaa7..6597c78 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -844,6 +844,13 @@ static void HandleHotkey(int code)
case 12: // toggle pass-through
CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1);
break;
+ case 13: // decrease audio delay
+ VideoSetAudioDelay(VideoAudioDelay / 90 - 10);
+ break;
+ case 14: // increase audio delay
+ VideoSetAudioDelay(VideoAudioDelay / 90 + 10);
+ break;
+
case 20: // disable full screen
VideoSetFullscreen(0);
break;
@@ -1779,6 +1786,8 @@ static const char *SVDRPHelpText[] = {
" 10: disable audio pass-through\n"
" 11: enable audio pass-through\n"
" 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"
" 22: toggle fullscreen\n",