X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.h;h=6725a7f46e242fe44bdba8a7c0e583b422b42102;hb=0d7183f398856c9331e58808d0374e63593334b6;hp=31886fd707a2c411f9167346add045ca3154edcb;hpb=635bc53e064f4cd96d4271a8a28b59b301d5921d;p=nageru diff --git a/mixer.h b/mixer.h index 31886fd..6725a7f 100644 --- a/mixer.h +++ b/mixer.h @@ -136,6 +136,8 @@ public: 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, @@ -212,7 +214,7 @@ private: Ebu_r128_proc r128; // TODO: Implement oversampled peak detection. - float peak = 0.0f; + std::atomic peak{0.0f}; StereoFilter locut; // Default cutoff 150 Hz, 24 dB/oct. std::atomic locut_cutoff_hz;