MIDI Clock - Shuffling locate code (not actually used yet)
[ardour.git] / libs / ardour / ardour / peak.h
index 5be2c08f414609bddc4392b02d781d9180b7fc8c..ab99889dd3dd0c4cf43fc5de1ec6c88de3c64d27 100644 (file)
@@ -25,9 +25,9 @@
 #include "ardour/utils.h"
 
 static inline float
-default_compute_peak (const ARDOUR::Sample * const buf, nframes_t nsamples, float current)
+default_compute_peak (const ARDOUR::Sample * const buf, ARDOUR::pframes_t nsamples, float current)
 {
-       for (nframes_t i = 0; i < nsamples; ++i) {
+       for (ARDOUR::pframes_t i = 0; i < nsamples; ++i) {
                current = f_max (current, fabsf (buf[i]));
        }
        return current;