Sync reset meter, report zero until the meter is actually reset

This commit is contained in:
Robin Gareus 2020-04-10 22:58:21 +02:00
parent 24cce2e43d
commit 58672bcaa2
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -356,6 +356,11 @@ PeakMeter::set_max_channels (const ChanCount& chn)
float
PeakMeter::meter_level (uint32_t n, MeterType type)
{
if (g_atomic_int_get (&_reset_max)) {
/* max-peak implies DPM reset */
return minus_infinity ();
}
float mcptmp;
switch (type) {
case MeterKrms: