#include "pbo_frame_allocator.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
-#include "resampler.h"
+#include "resampling_queue.h"
#include "theme.h"
#include "timebase.h"
#include "stereocompressor.h"
locut_cutoff_hz = cutoff_hz;
}
+ void reset_meters();
+
private:
void bm_frame(unsigned card_index, uint16_t timecode,
FrameAllocator::Frame video_frame, size_t video_offset, uint16_t video_format,
unsigned dropped_frames = 0; // Before new_frame.
std::mutex audio_mutex;
- std::unique_ptr<Resampler> resampler; // Under audio_mutex.
+ std::unique_ptr<ResamplingQueue> resampling_queue; // Under audio_mutex.
int last_timecode = -1; // Unwrapped.
};
CaptureCard cards[MAX_CARDS]; // protected by <bmusb_mutex>
Ebu_r128_proc r128;
// TODO: Implement oversampled peak detection.
- float peak = 0.0f;
+ std::atomic<float> peak{0.0f};
StereoFilter locut; // Default cutoff 150 Hz, 24 dB/oct.
std::atomic<float> locut_cutoff_hz;