clip bs412 and make it simpler to understand, both by me and the compiler

This commit is contained in:
2025-07-08 23:04:38 +02:00
parent dced0383d5
commit 58a37da27c
3 changed files with 10 additions and 9 deletions
+3 -2
View File
@@ -11,6 +11,7 @@
typedef struct
{
int mpx_deviation;
int sample_counter;
int sample_rate;
float target;
@@ -23,5 +24,5 @@ typedef struct
float dbr_to_deviation(float dbr);
float deviation_to_dbr(float deviation);
void init_bs412(BS412Compressor *mpx, float target_power, float attack, float release, int sample_rate);
float bs412_compress(BS412Compressor *mpx, float deviation);
void init_bs412(BS412Compressor *mpx, float mpx_deviation, float target_power, float attack, float release, int sample_rate);
float bs412_compress(BS412Compressor *mpx, float sample);