From a09fec02139770c90bdadffb56b356826c314dfd Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 18 Jul 2016 23:51:42 +0200 Subject: [PATCH] add a const - just because. --- libs/ardour/ardour/dsp_filter.h | 2 +- libs/ardour/dsp_filter.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ardour/dsp_filter.h b/libs/ardour/ardour/dsp_filter.h index eb9ba4aa0d..b7be410950 100644 --- a/libs/ardour/ardour/dsp_filter.h +++ b/libs/ardour/ardour/dsp_filter.h @@ -151,7 +151,7 @@ namespace ARDOUR { namespace DSP { * @param max result, max value found in range * @param n_samples number of samples to analyze */ - void peaks (float *data, float &min, float &max, uint32_t n_samples); + void peaks (const float *data, float &min, float &max, uint32_t n_samples); /** non-linear power-scale meter deflection * diff --git a/libs/ardour/dsp_filter.cc b/libs/ardour/dsp_filter.cc index 7470a583d3..0eef61a0f4 100644 --- a/libs/ardour/dsp_filter.cc +++ b/libs/ardour/dsp_filter.cc @@ -67,7 +67,7 @@ ARDOUR::DSP::log_meter_coeff (float coeff) { } void -ARDOUR::DSP::peaks (float *data, float &min, float &max, uint32_t n_samples) { +ARDOUR::DSP::peaks (const float *data, float &min, float &max, uint32_t n_samples) { for (uint32_t i = 0; i < n_samples; ++i) { if (data[i] < min) min = data[i]; if (data[i] > max) max = data[i];