From c69ef7aa3764e0c01561aed14e8af6280219e0d4 Mon Sep 17 00:00:00 2001 From: Len Ovens Date: Tue, 31 May 2016 13:53:11 -0700 Subject: [PATCH] Surfaces: Metering could only handle one surface at a time. --- libs/ardour/meter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/meter.cc b/libs/ardour/meter.cc index fa9ee2fc6b..72a2f82cb1 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -87,6 +87,7 @@ PeakMeter::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_fr const bool do_reset_dpm = _reset_dpm; _reset_max = false; _reset_dpm = false; + _combined_peak = 0; // cerr << "meter " << name() << " runs with " << bufs.available() << " inputs\n"; @@ -364,7 +365,6 @@ PeakMeter::meter_level(uint32_t n, MeterType type) { break; case MeterMCP: mcptmp = _combined_peak; - _combined_peak = 0; return accurate_coefficient_to_dB(mcptmp); case MeterMaxSignal: assert(0);