Prevent divisions by zero in sidechain mode
This commit is contained in:
parent
f7201a0f58
commit
862d475b2b
|
@ -728,7 +728,9 @@ impl CompressorBank {
|
||||||
|
|
||||||
unsafe { magnitudes.get_unchecked(bin_idx) * t }
|
unsafe { magnitudes.get_unchecked(bin_idx) * t }
|
||||||
})
|
})
|
||||||
.sum();
|
.sum::<f32>()
|
||||||
|
// The thresholds may never reach zero as they are used in divisions
|
||||||
|
.max(f32::EPSILON);
|
||||||
|
|
||||||
let mut scale = 1.0;
|
let mut scale = 1.0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue