]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Hook up the lo-cut knob. A bit crude for now, though.
[nageru] / mixer.cpp
index 506af4aeabb95fa8d554cc32baf80dfe5c61b3ff..1e494073f8f568a965d17b80970dcd7ee9f59629 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -544,7 +544,7 @@ void Mixer::process_audio_one_frame()
        // Cut away everything under 150 Hz; we don't need it for voice,
        // and it will reduce headroom and confuse the compressor.
        // (In particular, any hums at 50 or 60 Hz should be dampened.)
-       locut.render(samples_out.data(), samples_out.size() / 2, 150.0 * 2.0 * M_PI / OUTPUT_FREQUENCY, 0.5f);
+       locut.render(samples_out.data(), samples_out.size() / 2, locut_cutoff_hz * 2.0 * M_PI / OUTPUT_FREQUENCY, 0.5f);
 
        // Apply a level compressor to get the general level right.
        // Basically, if it's over about -40 dBFS, we squeeze it down to that level