From 3e4f2d0f7aa2f7c48c407cfe335ed417edd99efa Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 4 Jun 2019 14:48:47 +0200 Subject: [PATCH] Fix async peak-meter reset --- libs/ardour/meter.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index 945dec7f73..a514deaa6b 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -84,7 +84,9 @@ PeakMeter::run (BufferSet& bufs, samplepos_t /*start_sample*/, samplepos_t /*end return; } const bool do_reset_max = _reset_max; - const bool do_reset_dpm = _reset_dpm; + // XXX max-peak is set from DPM's peak-buffer, so DPM also needs to be reset in sync: + const bool do_reset_dpm = _reset_dpm || do_reset_max; + _reset_max = false; _reset_dpm = false; _combined_peak = 0;