]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Hook up the level compressor auto checkbox.
[nageru] / mixer.cpp
index 618ce31eccebf9ff8a6d40303fb187768dc611bf..dd8cc6013d72559bb08b89c6d5605953ac6b4269 100644 (file)
--- 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;