diff options
author | Taybin Rutkin <taybin@taybin.com> | 2007-07-31 00:48:10 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2007-07-31 00:48:10 +0000 |
commit | 8756647ab974971e0d0e59bb172a39470baebf02 (patch) | |
tree | 43368524bdbf05c3a3fc675ee0be9afade79448a /libs/ardour/mix.cc | |
parent | 9e1eed55aa9120b77cba28f67de93901a7fe10a5 (diff) |
- 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
Diffstat (limited to 'libs/ardour/mix.cc')
-rw-r--r-- | libs/ardour/mix.cc | 18 |
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 |