Remove all use of nframes_t.
[ardour.git] / libs / ardour / ardour / peak.h
index 2283f5011899912407f08ca084515260899f9211..ab99889dd3dd0c4cf43fc5de1ec6c88de3c64d27 100644 (file)
@@ -25,9 +25,9 @@
 #include "ardour/utils.h"
 
 static inline float
-default_compute_peak (const ARDOUR::Sample * const buf, ARDOUR::nframes_t nsamples, float current)
+default_compute_peak (const ARDOUR::Sample * const buf, ARDOUR::pframes_t nsamples, float current)
 {
-       for (ARDOUR::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;