This commit is contained in:
2026-02-15 18:23:41 +01:00
parent 6330cbe3a3
commit 12f6887bc2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) {
comp->gain = fmaxf(0.0f, fminf(2.0f, comp->gain));
float output_sample = (audio * comp->gain) + comp;
float output_sample = (audio * comp->gain) + sample_mpx;
if(deviation_to_dbr(avg_deviation * comp->gain) > comp->target && deviation_to_dbr(avg_deviation) < comp->target) {
// Gain is too much, reduce
float overshoot_dbr = deviation_to_dbr(avg_deviation * comp->gain) - comp->target;