From c2fb35f63b4365a4e34fa34c56ca1f51c4d04354 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 28 Apr 2026 16:57:04 +0200 Subject: [PATCH] fix debug --- filter/bs412.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/filter/bs412.c b/filter/bs412.c index 456c338..28ba05d 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -43,12 +43,6 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) { } if(comp->sample_counter > comp->sample_rate) { - #ifdef BS412_DEBUG - debug_printf("MPX: %.2f dBr | gain: %.6f | target_gain: %.6f\n", - comp->modulation_power, - comp->gain, - target_gain); - #endif comp->sample_counter = 0; if(comp->can_compress == 0) comp->second_counter++; } @@ -79,5 +73,12 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) { comp->sample_counter++; + #ifdef BS412_DEBUG + debug_printf("MPX: %.2f dBr | gain: %.6f | target_gain: %.6f\n", + comp->modulation_power, + comp->gain, + target_gain); + #endif + return output_sample; }