add a const - just because.
This commit is contained in:
parent
901f8caf22
commit
a09fec0213
@ -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
|
||||
*
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user