summaryrefslogtreecommitdiff
path: root/libs/ardour/meter.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-06-29 06:58:07 +0000
committerDavid Robillard <d@drobilla.net>2007-06-29 06:58:07 +0000
commiteb296b2c957f574334fae2aefd8b863cf7631769 (patch)
tree57a546f8c61a81b7088b23b9fcd92a5b9d578e9f /libs/ardour/meter.cc
parent44867662a3d020e042714d1c5e948b8c3afea941 (diff)
Reduce overhead of multi-type-ness (last Summer's SoC):
Use uint32_t instead of size_t counts (halves size of ChanCount on 64-bit). Shift DataType values down to eliminate subtraction every index of a ChanCount or *Set. Allow using DataType directly as an array index (prettier/terser). Fix some mixed spaces/tabs in file comment headers. git-svn-id: svn://localhost/ardour2/trunk@2082 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/meter.cc')
-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 fb8dafbc7b..4a898eecaf 100644
--- a/libs/ardour/meter.cc
+++ b/libs/ardour/meter.cc
@@ -36,7 +36,7 @@ namespace ARDOUR {
void
PeakMeter::run (BufferSet& bufs, nframes_t start_frame, nframes_t end_frame, nframes_t nframes, nframes_t offset)
{
- size_t meterable = std::min(bufs.count().n_total(), _peak_power.size());
+ size_t meterable = std::min((size_t)bufs.count().n_total(), _peak_power.size());
size_t n = 0;