diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/filters/biquad.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/filters/biquad.cpp b/core/filters/biquad.cpp index 470b1cd3..8e5ed17d 100644 --- a/core/filters/biquad.cpp +++ b/core/filters/biquad.cpp @@ -15,7 +15,7 @@ template<typename Real> void BiquadFilterR<Real>::setParams(BiquadType type, Real f0norm, Real gain, Real rcpQ) { // Limit gain to -100dB - assert(gain > 0.00001f); + gain = std::max(gain, Real(0.00001)); const Real w0{al::numbers::pi_v<Real>*2.0f * f0norm}; const Real sin_w0{std::sin(w0)}; |