mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
return the actually fucking clipped sample (facepalm moment)
This commit is contained in:
@@ -70,5 +70,5 @@ float bs412_compress(BS412Compressor* mpx, float sample) {
|
|||||||
float limit_threshold = dbr_to_deviation(mpx->target + 0.1f) / mpx->mpx_deviation;
|
float limit_threshold = dbr_to_deviation(mpx->target + 0.1f) / mpx->mpx_deviation;
|
||||||
output_sample = soft_clip_tanh(output_sample, limit_threshold);
|
output_sample = soft_clip_tanh(output_sample, limit_threshold);
|
||||||
|
|
||||||
return sample * mpx->gain;
|
return output_sample;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user