diff options
author | Robin Gareus <robin@gareus.org> | 2019-06-04 14:48:47 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-06-04 14:48:47 +0200 |
commit | 3e4f2d0f7aa2f7c48c407cfe335ed417edd99efa (patch) | |
tree | 123db79dc475bfc5476bb12d9e657468293cb5f8 /libs/ardour/meter.cc | |
parent | 69194df4d9a2f985423eca7d44c3d3292cc8baad (diff) |
Fix async peak-meter reset
Diffstat (limited to 'libs/ardour/meter.cc')
-rw-r--r-- | libs/ardour/meter.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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; |