projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69194df
)
Fix async peak-meter reset
author
Robin Gareus
<robin@gareus.org>
Tue, 4 Jun 2019 12:48:47 +0000
(14:48 +0200)
committer
Robin Gareus
<robin@gareus.org>
Tue, 4 Jun 2019 12:48:47 +0000
(14:48 +0200)
libs/ardour/meter.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/meter.cc
b/libs/ardour/meter.cc
index 945dec7f73e0941684280fcf34d214ddb65d4f93..a514deaa6b8f7e6b3492492e28698d304397bbe5 100644
(file)
--- 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;