From 2a1793c98ef5b61f9ba10283a9950e5e9bbe98c8 Mon Sep 17 00:00:00 2001 From: Johns Date: Sat, 7 Apr 2012 13:43:51 +0200 Subject: [PATCH] Use config value to change audio/video delay. --- softhddevice.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/softhddevice.cpp b/softhddevice.cpp index 6597c78..6b27c9d 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -845,10 +845,12 @@ static void HandleHotkey(int code) CodecSetAudioPassthrough(ConfigAudioPassthrough ^= 1); break; case 13: // decrease audio delay - VideoSetAudioDelay(VideoAudioDelay / 90 - 10); + ConfigVideoAudioDelay -= 10; + VideoSetAudioDelay(ConfigVideoAudioDelay); break; case 14: // increase audio delay - VideoSetAudioDelay(VideoAudioDelay / 90 + 10); + ConfigVideoAudioDelay += 10; + VideoSetAudioDelay(ConfigVideoAudioDelay); break; case 20: // disable full screen