mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 23:25:43 +01:00
add a const - just because.
This commit is contained in:
parent
901f8caf22
commit
a09fec0213
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue