From 5b90137050a09200b19308776662255c2141dacb Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 30 Sep 2015 12:24:26 +0200 Subject: [PATCH] Handle change of audio ac3 downmix direct. --- ChangeLog | 1 + softhddevice.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 148f54a..0116a91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ User johns Date: + Handle change of audio ac3 downmix direct. Speedup queuing output surface, when decoder buffers are full. Fix bug: info shows wrong decoded video surfaces. Calculate queued output surfaces and show them in info message. diff --git a/softhddevice.cpp b/softhddevice.cpp index af4bd73..70994d7 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -1336,6 +1336,12 @@ void cMenuSetupSoft::Store(void) VideoSetAudioDelay(ConfigVideoAudioDelay); SetupStore("AudioDrift", ConfigAudioDrift = AudioDrift); CodecSetAudioDrift(ConfigAudioDrift); + + // FIXME: can handle more audio state changes here + // downmix changed reset audio, to get change direct + if (ConfigAudioDownmix != AudioDownmix) { + ResetChannelId(); + } ConfigAudioPassthrough = (AudioPassthroughPCM ? CodecPCM : 0) | (AudioPassthroughAC3 ? CodecAC3 : 0) | (AudioPassthroughEAC3 ? CodecEAC3 : 0);