13
0

add a const - just because.

This commit is contained in:
Robin Gareus 2016-07-18 23:51:42 +02:00
parent 901f8caf22
commit a09fec0213
2 changed files with 2 additions and 2 deletions

View File

@ -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
*

View File

@ -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];