diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2016-05-06 02:41:24 +0200 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2016-05-06 02:41:24 +0200 |
commit | e31ca2ccaca7f0299c74615dfaa44d34eff892e8 (patch) | |
tree | 77a35c2844e887158f4085b780a99cb19bfa2260 /src/engine/enginepregain.cpp | |
parent | 973bbedd30f43a131d3bd89ca99b3439302fd7ee (diff) | |
parent | d6d95e00d0b656faba03a2b3b58956d90bd93e4e (diff) |
Merge remote-tracking branch 'upstream/master' into scaler2
Diffstat (limited to 'src/engine/enginepregain.cpp')
-rw-r--r-- | src/engine/enginepregain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/enginepregain.cpp b/src/engine/enginepregain.cpp index 5688b94a6c..17057920b0 100644 --- a/src/engine/enginepregain.cpp +++ b/src/engine/enginepregain.cpp @@ -128,9 +128,9 @@ void EnginePregain::process(CSAMPLE* pInOut, const int iBufferSize) { } else if (totalGain != m_fPrevGain) { // Prevent sound wave discontinuities by interpolating from old to new gain. SampleUtil::applyRampingGain(pInOut, m_fPrevGain, totalGain, iBufferSize); - m_fPrevGain = totalGain; } else { // SampleUtil deals with aliased buffers and gains of 1 or 0. SampleUtil::applyGain(pInOut, totalGain, iBufferSize); } + m_fPrevGain = totalGain; } |