From 527f63e0e4d6d7eeb93f4ecabc011176c8faa256 Mon Sep 17 00:00:00 2001 From: Peter Stitt Date: Thu, 20 Nov 2025 17:04:24 +0100 Subject: [PATCH] GainInterp: Fix bug that avoids processing the wrong channels. Should exclude channels of essentially zero gain --- source/GainInterp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/GainInterp.cpp b/source/GainInterp.cpp index 3727b87..42df32f 100644 --- a/source/GainInterp.cpp +++ b/source/GainInterp.cpp @@ -96,7 +96,7 @@ namespace spaudio { for (unsigned int iCh = 0; iCh < nCh; ++iCh) { float gain = static_cast(m_targetGainVec[iCh]); - if (std::abs(gain - 1.f) <= 1e-5f) // If gain is almost 1 then don't process this channel + if (std::abs(gain) < 1e-5f) continue; for (unsigned int i = nInterpSamples; i < nSamples; ++i)