summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-06-30 15:08:18 +0000
committerCarl Hetherington <carl@carlh.net>2010-06-30 15:08:18 +0000
commitaad230da6937358b11976c1db3986575b2e412a0 (patch)
treec3788014f8b6fc30f49236c366a3d860fe4613cb
parent5f67a72c341a96872d9cd3d1de357662295d14b0 (diff)
Improve behaviour of MIDI metering.
git-svn-id: svn://localhost/ardour2/branches/3.0@7337 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/meter.cc2
1 files changed, 1 insertions, 1 deletions
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