more MTC stuff, including toggleable use of torben's PI controller
[ardour.git] / libs / ardour / ardour / peak.h
index 5be2c08f414609bddc4392b02d781d9180b7fc8c..2283f5011899912407f08ca084515260899f9211 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::nframes_t nsamples, float current)
 {
-       for (nframes_t i = 0; i < nsamples; ++i) {
+       for (ARDOUR::nframes_t i = 0; i < nsamples; ++i) {
                current = f_max (current, fabsf (buf[i]));
        }
        return current;