mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
lol
This commit is contained in:
@@ -52,7 +52,7 @@ float bs412_compress(BS412Compressor* mpx, float sample) {
|
|||||||
float excess_power = modulation_power - mpx->target;
|
float excess_power = modulation_power - mpx->target;
|
||||||
|
|
||||||
if (excess_power > 0.0f && excess_power < 10.0f) {
|
if (excess_power > 0.0f && excess_power < 10.0f) {
|
||||||
float target_gain = dbr_to_deviation(-excess_power) / config.mpx_deviation;
|
float target_gain = dbr_to_deviation(-excess_power) / mpx->mpx_deviation;
|
||||||
|
|
||||||
target_gain = fmaxf(target_gain, 0.1f);
|
target_gain = fmaxf(target_gain, 0.1f);
|
||||||
target_gain = fminf(target_gain, 1.0f);
|
target_gain = fminf(target_gain, 1.0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user