From 58672bcaa20f69a5c237a9e54cf49b2c03305f7a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 10 Apr 2020 22:58:21 +0200 Subject: [PATCH] Sync reset meter, report zero until the meter is actually reset --- libs/ardour/meter.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index 7964ca0431..17602f6900 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -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: