From 17d84fb8a81a4b8ff129a3f20dca1cbca8fee34e Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 28 Apr 2026 17:01:19 +0200 Subject: [PATCH] its just bypass --- filter/bs412.c | 14 ++------------ filter/bs412.h | 1 - 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/filter/bs412.c b/filter/bs412.c index 199cd18..ada0af2 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -23,8 +23,8 @@ void init_bs412(BS412Compressor* comp, uint32_t mpx_deviation, float target_powe comp->release = expf(-1.0f / (release * sample_rate)); comp->target = target_power; // target is expected to not be our rms format comp->gain = 1.0f; - comp->can_compress = 1; - comp->second_counter = BS412_TIME+1; + comp->can_compress = 0; + comp->second_counter = 0; comp->max_gain = max_gain; #ifdef BS412_DEBUG debug_printf("Initialized MPX power measurement with sample rate: %d\n", sample_rate); @@ -55,9 +55,6 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) { comp->second_counter = 0; } else { comp->sample_counter++; - #ifdef BS412_DEBUG - debug_printf("Bypass"); - #endif return combined; } @@ -76,12 +73,5 @@ 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; } diff --git a/filter/bs412.h b/filter/bs412.h index aab22d2..3d79e4d 100644 --- a/filter/bs412.h +++ b/filter/bs412.h @@ -1,6 +1,5 @@ #pragma once -#define BS412_DEBUG #ifdef DEBUG #define BS412_DEBUG #endif