#include "resampler.h"
#include "theme.h"
#include "timebase.h"
+#include "stereocompressor.h"
+#include "filter.h"
class H264Encoder;
class QSurface;
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.
// 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;