0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00
This commit is contained in:
2025-12-30 22:11:07 +01:00
parent 2b65557dfe
commit d06c7d7bd0

View File

@@ -36,7 +36,7 @@ static inline float soft_clip_tanh(float sample, float threshold) {
float bs412_compress(BS412Compressor* mpx, float sample) {
mpx->avg_power += mpx->alpha * ((sample * sample * mpx->mpx_deviation * mpx->mpx_deviation) - mpx->avg_power);
float avg_deviation = sqrtf(mpx->avg_power);
float avg_deviation = mpx->avg_power;
float modulation_power = deviation_to_dbr(avg_deviation);
if(mpx->target <= -100.0f) {