mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Change audio/video delay with hot-key.
This commit is contained in:
parent
aa4debc9c8
commit
30d4586448
@ -2,6 +2,7 @@ User johns
|
|||||||
Date:
|
Date:
|
||||||
|
|
||||||
Release Version 0.5.0
|
Release Version 0.5.0
|
||||||
|
Change audio/video delay with hot-key.
|
||||||
Enable/disable/toggle fullscreen with hot-key (Feature #930).
|
Enable/disable/toggle fullscreen with hot-key (Feature #930).
|
||||||
|
|
||||||
User: CafeDelMar
|
User: CafeDelMar
|
||||||
|
@ -844,6 +844,13 @@ static void HandleHotkey(int code)
|
|||||||
case 12: // toggle pass-through
|
case 12: // toggle pass-through
|
||||||
CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1);
|
CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1);
|
||||||
break;
|
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
|
case 20: // disable full screen
|
||||||
VideoSetFullscreen(0);
|
VideoSetFullscreen(0);
|
||||||
break;
|
break;
|
||||||
@ -1779,6 +1786,8 @@ static const char *SVDRPHelpText[] = {
|
|||||||
" 10: disable audio pass-through\n"
|
" 10: disable audio pass-through\n"
|
||||||
" 11: enable audio pass-through\n"
|
" 11: enable audio pass-through\n"
|
||||||
" 12: toggle 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"
|
" 20: disable fullscreen\n"
|
||||||
" 21: enable fullscreen\n"
|
" 21: enable fullscreen\n"
|
||||||
" 22: toggle fullscreen\n",
|
" 22: toggle fullscreen\n",
|
||||||
|
1
video.h
1
video.h
@ -35,6 +35,7 @@ typedef struct _video_hw_decoder_ VideoHwDecoder;
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern char VideoIgnoreRepeatPict; ///< disable repeat pict warning
|
extern char VideoIgnoreRepeatPict; ///< disable repeat pict warning
|
||||||
|
extern int VideoAudioDelay; ///< audio/video delay
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
// Prototypes
|
// Prototypes
|
||||||
|
Loading…
Reference in New Issue
Block a user