From 3cb55d3cac4c4976fee07e7721dc26125ae2e139 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 15 Feb 2026 18:28:07 +0100 Subject: [PATCH] +9 db --- filter/bs412.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/bs412.c b/filter/bs412.c index 1bd1ecd..9a57c08 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -82,7 +82,7 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) { float overshoot_dbr = deviation_to_dbr(avg_deviation * comp->gain) - comp->target; float reduction_factor = powf(10.0f, -overshoot_dbr / 10.0f); comp->gain *= reduction_factor; - comp->gain = fmaxf(0.0f, fminf(2.0f, comp->gain)); + comp->gain = fmaxf(0.01f, fminf(2.82f, comp->gain)); } comp->sample_counter++;