0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

add bs412 max

This commit is contained in:
2026-02-15 18:47:39 +01:00
parent 1e2a82db92
commit d820603da8
3 changed files with 14 additions and 8 deletions

View File

@@ -19,6 +19,7 @@ typedef struct
float target;
float attack;
float release;
float max_gain;
float gain;
double avg_power;
double alpha;
@@ -30,5 +31,5 @@ typedef struct
// float dbr_to_deviation(float dbr);
float deviation_to_dbr(float deviation);
void init_bs412(BS412Compressor *comp, uint32_t mpx_deviation, float target_power, float attack, float release, uint32_t sample_rate);
void init_bs412(BS412Compressor *comp, uint32_t mpx_deviation, float target_power, float attack, float release, float max_gain, uint32_t sample_rate);
float bs412_compress(BS412Compressor *comp, float audio, float sample_mpx);