+
+ audio_level_callback_t audio_level_callback = nullptr;
+ mutable std::mutex audio_measure_mutex;
+ Ebu_r128_proc r128; // Under audio_measure_mutex.
+ CorrelationMeasurer correlation; // Under audio_measure_mutex.
+ Resampler peak_resampler; // Under audio_measure_mutex.
+ std::atomic<float> peak{0.0f};
+
+ // Under audio_measure_mutex. Note that Ebu_r128_proc has a broken
+ // copy constructor (it uses the default, but holds arrays),
+ // so we can't just use raw Ebu_r128_proc elements, but need to use
+ // unique_ptrs.
+ std::vector<std::unique_ptr<Ebu_r128_proc>> bus_r128;