From 81e13090dd177cd42406e192bc088b4de7be7b9e Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Tue, 27 Dec 2016 09:18:57 +0100 Subject: AE: fix normalize volume on reconfigure --- xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp index 362fae6d4e..d38afea2b5 100644 --- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp +++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp @@ -553,8 +553,7 @@ bool CActiveAEBufferPoolResample::ResampleBuffers(int64_t timestamp) void CActiveAEBufferPoolResample::ConfigureResampler(bool normalizelevels, bool dspenabled, bool stereoupmix, AEQuality quality) { bool normalize = true; - if ((m_format.m_channelLayout.Count() < m_inputFormat.m_channelLayout.Count()) && - normalizelevels) + if ((m_format.m_channelLayout.Count() < m_inputFormat.m_channelLayout.Count()) && !normalizelevels) normalize = false; /* Disable upmix if DSP layout > 2.0, becomes perfomed by DSP */ -- cgit v1.2.3