]> git.sesse.net Git - nageru/blobdiff - mixer.h
Finally add defines for sample rate and fps (although they should really be non-compi...
[nageru] / mixer.h
diff --git a/mixer.h b/mixer.h
index d7f50cf61baf891c13c9cab3c201f40fed57694c..cdc6f1c8c32762b6e68f86ea61c1d3745e355f92 100644 (file)
--- a/mixer.h
+++ b/mixer.h
@@ -29,6 +29,7 @@
 #include "resampler.h"
 #include "theme.h"
 #include "timebase.h"
+#include "stereocompressor.h"
 
 class H264Encoder;
 class QSurface;
@@ -161,11 +162,10 @@ private:
                QSurface *surface;
                QOpenGLContext *context;
 
-               bool new_data_ready = false;  // Whether new_frame and new_frame_audio contains anything.
+               bool new_data_ready = false;  // Whether new_frame contains anything.
                bool should_quit = false;
                RefCountedFrame new_frame;
                GLsync new_data_ready_fence;  // Whether new_frame is ready for rendering.
-               std::vector<float> new_frame_audio;
                std::condition_variable new_data_ready_changed;  // Set whenever new_data_ready is changed.
                unsigned dropped_frames = 0;  // Before new_frame.
 
@@ -204,6 +204,9 @@ private:
 
        // TODO: Implement oversampled peak detection.
        float peak = 0.0f;
+
+       // First compressor; takes us up to about -12 dBFS.
+       StereoCompressor level_compressor;
 };
 
 extern Mixer *global_mixer;