]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Move WIDTH/HEIGHT #defines into defs.h.
[nageru] / mixer.cpp
index 239575f6dc82a1c969597474d425b75f47a8b638..42a02521258e93f34c71518c4de0917135c2fad4 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -1,5 +1,3 @@
-#define WIDTH 1280
-#define HEIGHT 720
 #define EXTRAHEIGHT 30
 
 #undef Success
@@ -572,9 +570,10 @@ void Mixer::process_audio_one_frame(int64_t frame_pts_int)
                }
        }
 
-       // 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.)
+       // Cut away everything under 120 Hz (or whatever the cutoff is);
+       // 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, locut_cutoff_hz * 2.0 * M_PI / OUTPUT_FREQUENCY, 0.5f);
 
        // Apply a level compressor to get the general level right.