X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fpeak.h;h=bbec40eea7e65502a36ea0a3b099fdc2e69c1e2f;hb=022818b4a796f52c0a91eea42e65aec0bc7bed43;hp=eaeafe0f5d43b44d1e82adde7cba83224ed77d6d;hpb=87726495c30f90554b5204b5385d17274a8fe93e;p=ardour.git diff --git a/libs/ardour/ardour/peak.h b/libs/ardour/ardour/peak.h index eaeafe0f5d..bbec40eea7 100644 --- a/libs/ardour/ardour/peak.h +++ b/libs/ardour/ardour/peak.h @@ -25,7 +25,7 @@ #include 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]));