From aad230da6937358b11976c1db3986575b2e412a0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 30 Jun 2010 15:08:18 +0000 Subject: [PATCH] Improve behaviour of MIDI metering. git-svn-id: svn://localhost/ardour2/branches/3.0@7337 d708f5d6-7413-0410-9779-e7cbd77b26cf --- 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 98c46067c7..3c53f56db4 100644 --- a/libs/ardour/meter.cc +++ b/libs/ardour/meter.cc @@ -67,7 +67,7 @@ PeakMeter::run (BufferSet& bufs, sframes_t /*start_frame*/, sframes_t /*end_fram } } } - _peak_power[n] = val; + _peak_power[n] = max (val, _peak_power[n]); } // Meter audio in to the rest of the peaks