#include <movit/effect_chain.h>
#include <movit/flat_input.h>
+#include <zita-resampler/resampler.h>
#include <atomic>
#include <condition_variable>
#include <cstddef>
#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"
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>
audio_level_callback_t audio_level_callback = nullptr;
Ebu_r128_proc r128;
- // TODO: Implement oversampled peak detection.
+ Resampler peak_resampler;
std::atomic<float> peak{0.0f};
StereoFilter locut; // Default cutoff 150 Hz, 24 dB/oct.