From 6f23536c4c2c35b510f7f8d201ced6205b3c5f50 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 15 Jul 2025 20:39:33 +0200 Subject: [PATCH] set bs412 gain to 0 on start --- filter/bs412.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/bs412.c b/filter/bs412.c index 6474cdd..fcb4b8f 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -19,7 +19,7 @@ void init_bs412(BS412Compressor* mpx, float mpx_deviation, float target_power, f mpx->attack = expf(-1.0f / (attack * sample_rate)); mpx->release = expf(-1.0f / (release * sample_rate)); mpx->target = target_power; - mpx->gain = 1.0f; + mpx->gain = 0.0f; mpx->max = max; memset(mpx->lookahead_samples, 0, BS412_LOOKAHEAD); mpx->lookahead_counter = 0;