From 8756647ab974971e0d0e59bb172a39470baebf02 Mon Sep 17 00:00:00 2001 From: Taybin Rutkin Date: Tue, 31 Jul 2007 00:48:10 +0000 Subject: - build fixes for OS X. -- casts for vDSP in mix.cc -- fix for PluginInsert::PluginControl usage -- disable POWERMATE if POWERMATE=0 git-svn-id: svn://localhost/ardour2/trunk@2193 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/mix.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libs/ardour/mix.cc') 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(buf), 1, max, nframes); + vDSP_minv (const_cast(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 -- cgit v1.2.3