Fix interaction between compressor input gain and audition (#5999)

This commit is contained in:
Lost Robot
2021-04-27 20:41:23 -06:00
committed by GitHub
parent 89fc6c960b
commit 89f0a98e3d

View File

@@ -555,8 +555,8 @@ bool CompressorEffect::processAudioBuffer(sampleFrame* buf, const fpp_t frames)
// Negate wet signal from dry signal
if (audition)
{
s[0] = (-s[0] + delayedDrySignal[0] * m_outGainVal);
s[1] = (-s[1] + delayedDrySignal[1] * m_outGainVal);
s[0] = (-s[0] + delayedDrySignal[0] * m_outGainVal * m_inGainVal);
s[1] = (-s[1] + delayedDrySignal[1] * m_outGainVal * m_inGainVal);
}
else if (autoMakeup)
{