aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2016-12-27 09:18:57 +0100
committerMartijn Kaijser <mcm.kaijser@gmail.com>2016-12-29 11:44:36 +0100
commit81e13090dd177cd42406e192bc088b4de7be7b9e (patch)
tree43e9fa475c40f72b73b6a328525789820802f476
parent6257e42c9e75bf1a9d26046258d7636f5c890cf2 (diff)
AE: fix normalize volume on reconfigure
-rw-r--r--xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEBuffer.cpp3
1 files changed, 1 insertions, 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 */