From f540936eac695fc12c9a2f34aa8336c6d1e51033 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 28 Apr 2026 16:56:39 +0200 Subject: [PATCH] debug again --- filter/bs412.c | 5 ++++- filter/bs412.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/filter/bs412.c b/filter/bs412.c index 91ddb88..456c338 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -44,7 +44,10 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) { if(comp->sample_counter > comp->sample_rate) { #ifdef BS412_DEBUG - debug_printf("MPX power: %.2f dBr with gain %.2fx (%.2f dBr)\n", comp->modulation_power, comp->gain, deviation_to_dbr(comp->avg_deviation * comp->gain)); + 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++; diff --git a/filter/bs412.h b/filter/bs412.h index 3d79e4d..aab22d2 100644 --- a/filter/bs412.h +++ b/filter/bs412.h @@ -1,5 +1,6 @@ #pragma once +#define BS412_DEBUG #ifdef DEBUG #define BS412_DEBUG #endif