diff --git a/filter/bs412.c b/filter/bs412.c index 92d23cc..6474cdd 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -22,7 +22,7 @@ void init_bs412(BS412Compressor* mpx, float mpx_deviation, float target_power, f mpx->gain = 1.0f; mpx->max = max; memset(mpx->lookahead_samples, 0, BS412_LOOKAHEAD); - mpx->lookahead_samples = 0; + mpx->lookahead_counter = 0; #ifdef BS412_DEBUG debug_printf("Initialized MPX power measurement with sample rate: %d\n", sample_rate); #endif