X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.cpp;h=dd8cc6013d72559bb08b89c6d5605953ac6b4269;hb=a76872873dda7a4fc9f41972486c234699f43b23;hp=618ce31eccebf9ff8a6d40303fb187768dc611bf;hpb=c9dffdd52a4847c6cf5590e8c45d1cf5ee6177d3;p=nageru diff --git a/mixer.cpp b/mixer.cpp index 618ce31..dd8cc60 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -715,7 +715,7 @@ void Mixer::process_audio_one_frame(int64_t frame_pts_int, int num_samples) // then apply a makeup gain to get it to -14 dBFS. -14 dBFS is, of course, // entirely arbitrary, but from practical tests with speech, it seems to // put ut around -23 LUFS, so it's a reasonable starting point for later use. - { + if (level_compressor_enabled) { float threshold = 0.01f; // -40 dBFS. float ratio = 20.0f; float attack_time = 0.5f;