From d06c7d7bd0aaf046e91486298a6bb4927ceb64e6 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 30 Dec 2025 22:11:07 +0100 Subject: [PATCH] peak? --- filter/bs412.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/bs412.c b/filter/bs412.c index 1524f6b..630e170 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -36,7 +36,7 @@ static inline float soft_clip_tanh(float sample, float threshold) { float bs412_compress(BS412Compressor* mpx, float sample) { mpx->avg_power += mpx->alpha * ((sample * sample * mpx->mpx_deviation * mpx->mpx_deviation) - mpx->avg_power); - float avg_deviation = sqrtf(mpx->avg_power); + float avg_deviation = mpx->avg_power; float modulation_power = deviation_to_dbr(avg_deviation); if(mpx->target <= -100.0f) {