mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
set bs412 gain to 0 on start
This commit is contained in:
@@ -19,7 +19,7 @@ void init_bs412(BS412Compressor* mpx, float mpx_deviation, float target_power, f
|
|||||||
mpx->attack = expf(-1.0f / (attack * sample_rate));
|
mpx->attack = expf(-1.0f / (attack * sample_rate));
|
||||||
mpx->release = expf(-1.0f / (release * sample_rate));
|
mpx->release = expf(-1.0f / (release * sample_rate));
|
||||||
mpx->target = target_power;
|
mpx->target = target_power;
|
||||||
mpx->gain = 1.0f;
|
mpx->gain = 0.0f;
|
||||||
mpx->max = max;
|
mpx->max = max;
|
||||||
memset(mpx->lookahead_samples, 0, BS412_LOOKAHEAD);
|
memset(mpx->lookahead_samples, 0, BS412_LOOKAHEAD);
|
||||||
mpx->lookahead_counter = 0;
|
mpx->lookahead_counter = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user