From 2c9945db793744004a4e01fe5aa60091a305de08 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 20 Jul 2022 19:45:29 +0200 Subject: [PATCH] Allow negative thresholds for Safety Limiter --- plugins/safety_limiter/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/safety_limiter/src/lib.rs b/plugins/safety_limiter/src/lib.rs index 9d543c0b..6e8fc20c 100644 --- a/plugins/safety_limiter/src/lib.rs +++ b/plugins/safety_limiter/src/lib.rs @@ -107,10 +107,8 @@ impl Default for SafetyLimiterParams { threshold_gain: FloatParam::new( "Threshold", util::db_to_gain(0.00), - // This parameter mostly exists to allow small peaks through, so no need to go below - // 0 dBFS FloatRange::Linear { - min: util::db_to_gain(0.0), + min: util::db_to_gain(-24.0), max: util::db_to_gain(12.0), }, )