]> git.sesse.net Git - nageru/blobdiff - mixer.h
Add a 150 Hz lo-cut filter in front of the compressor.
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index 33f3a982cbb0519241224bbe67aa605d3b373f56..c312ee3a756aed8e0ff35ccdc3b5c1d4947919ed 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -29,6 +29,8 @@
 #include "resampler.h"
 #include "theme.h"
 #include "timebase.h"
+#include "stereocompressor.h"
+#include "filter.h"
 
 class H264Encoder;
 class QSurface;
@@ -203,6 +205,11 @@ private:
 
        // TODO: Implement oversampled peak detection.
        float peak = 0.0f;
+
+       StereoFilter locut;  // Cutoff 150 Hz, 24 dB/oct.
+
+       // First compressor; takes us up to about -12 dBFS.
+       StereoCompressor level_compressor;
 };
 
 extern Mixer *global_mixer;