try another bs412 compressor implementation

This commit is contained in:
2025-07-08 22:56:44 +02:00
parent 52f2f61a9a
commit 69494eaac4
3 changed files with 24 additions and 27 deletions
+7 -3
View File
@@ -13,11 +13,15 @@ typedef struct
{
int sample_counter;
int sample_rate;
float target;
float attack;
float release;
float gain;
double sample;
} MPXPowerMeasurement;
} BS412Compressor;
float dbr_to_deviation(float dbr);
float deviation_to_dbr(float deviation);
void init_modulation_power_measure(MPXPowerMeasurement *mpx, int sample_rate);
float measure_mpx(MPXPowerMeasurement *mpx, float deviation);
void init_bs412(BS412Compressor *mpx, float target_power, float attack, float release, int sample_rate);
float bs412_compress(BS412Compressor *mpx, float deviation);