reintroduce use of optimized functions for gain into buffer code, and cleanup the...
[ardour.git] / libs / ardour / ardour / peak.h
index eaeafe0f5d43b44d1e82adde7cba83224ed77d6d..bbec40eea7e65502a36ea0a3b099fdc2e69c1e2f 100644 (file)
@@ -25,7 +25,7 @@
 #include <ardour/utils.h>
 
 static inline float
-compute_peak (ARDOUR::Sample *buf, nframes_t nsamples, float current) 
+default_compute_peak (const ARDOUR::Sample * const buf, nframes_t nsamples, float current) 
 {
        for (nframes_t i = 0; i < nsamples; ++i) {
                current = f_max (current, fabsf (buf[i]));