13
0

Fix async peak-meter reset

This commit is contained in:
Robin Gareus 2019-06-04 14:48:47 +02:00
parent 69194df4d9
commit 3e4f2d0f7a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;