summaryrefslogtreecommitdiff
path: root/libs/ardour/mix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/mix.cc')
-rw-r--r--libs/ardour/mix.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/ardour/mix.cc b/libs/ardour/mix.cc
index 1c5d258661..726d375453 100644
--- a/libs/ardour/mix.cc
+++ b/libs/ardour/mix.cc
@@ -140,35 +140,35 @@ float
veclib_compute_peak (const ARDOUR::Sample * buf, nframes_t nsamples, float current)
{
float tmpmax = 0.0f;
- vDSP_maxmgv(buf, 1, &tmpmax, nsamples);
- return f_max(current, tmpmax);
+ vDSP_maxmgv(buf, 1, &tmpmax, nsamples);
+ return f_max(current, tmpmax);
}
void
veclib_find_peaks (const ARDOUR::Sample * buf, nframes_t nframes, float *min, float *max)
{
- vDSP_maxv (buf, 1, max, nframes);
- vDSP_minv (buf, 1, min, nframes);
+ vDSP_maxv (const_cast<ARDOUR::Sample*>(buf), 1, max, nframes);
+ vDSP_minv (const_cast<ARDOUR::Sample*>(buf), 1, min, nframes);
}
void
veclib_apply_gain_to_buffer (ARDOUR::Sample * buf, nframes_t nframes, float gain)
{
- vDSP_vsmul(buf, 1, &gain, buf, 1, nframes);
+ vDSP_vsmul(buf, 1, &gain, buf, 1, nframes);
}
void
veclib_mix_buffers_with_gain (ARDOUR::Sample * dst, const ARDOUR::Sample * src, nframes_t nframes, float gain)
{
- vDSP_vsma(src, 1, &gain, dst, 1, dst, 1, nframes);
+ vDSP_vsma(src, 1, &gain, dst, 1, dst, 1, nframes);
}
void
veclib_mix_buffers_no_gain (ARDOUR::Sample * dst, const ARDOUR::Sample * src, nframes_t nframes)
{
- // It seems that a vector mult only operation does not exist...
- float gain = 1.0f;
- vDSP_vsma(src, 1, &gain, dst, 1, dst, 1, nframes);
+ // It seems that a vector mult only operation does not exist...
+ float gain = 1.0f;
+ vDSP_vsma(src, 1, &gain, dst, 1, dst, 1, nframes);
}
#endif