diff --git a/plugins/spectral_compressor/src/compressor_bank.rs b/plugins/spectral_compressor/src/compressor_bank.rs index 153fd519..16c4dfee 100644 --- a/plugins/spectral_compressor/src/compressor_bank.rs +++ b/plugins/spectral_compressor/src/compressor_bank.rs @@ -728,7 +728,9 @@ impl CompressorBank { unsafe { magnitudes.get_unchecked(bin_idx) * t } }) - .sum(); + .sum::() + // The thresholds may never reach zero as they are used in divisions + .max(f32::EPSILON); let mut scale = 1.0;