Add explicit .max(f32::EPSILON) back in SC
`util::db_to_gain_fast()` doesn't snap to 0, but for low enough values it will still become 0 eventually.
This commit is contained in:
parent
6e7ee125b6
commit
bdc8537f3f
|
@ -881,9 +881,9 @@ impl CompressorBank {
|
||||||
|
|
||||||
// This threshold must never reach zero as it's used in divisions to get a gain ratio
|
// This threshold must never reach zero as it's used in divisions to get a gain ratio
|
||||||
// above the threshold
|
// above the threshold
|
||||||
*threshold = util::db_to_gain_fast(threshold_db);
|
*threshold = util::db_to_gain_fast(threshold_db).max(f32::EPSILON);
|
||||||
*knee_start = util::db_to_gain_fast(knee_start_db);
|
*knee_start = util::db_to_gain_fast(knee_start_db).max(f32::EPSILON);
|
||||||
*knee_end = util::db_to_gain_fast(knee_end_db);
|
*knee_end = util::db_to_gain_fast(knee_end_db).max(f32::EPSILON);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue