diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-10 22:58:21 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-10 23:50:06 +0200 |
commit | 58672bcaa20f69a5c237a9e54cf49b2c03305f7a (patch) | |
tree | 88d4228f4626122cb245432246d7d75824792a2d /libs | |
parent | 24cce2e43d2c5dc3852f8d3747650311a8cbf18e (diff) |
Sync reset meter, report zero until the meter is actually reset
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/meter.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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: |