diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-13 04:31:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-13 04:31:34 +0200 |
commit | 81ba187b1a7d129d26011b7c99eea9962ad877ee (patch) | |
tree | b06c14336d4bbfc8b0fce3b3dcb163b5b534de47 | |
parent | 0c914b8f1ed18c644d7c3501b82a94fcc109e5e5 (diff) |
use aligned malloc for luaDSP
-rw-r--r-- | libs/ardour/ardour/dsp_filter.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/ardour/ardour/dsp_filter.h b/libs/ardour/ardour/dsp_filter.h index 62998f916d..eb9ba4aa0d 100644 --- a/libs/ardour/ardour/dsp_filter.h +++ b/libs/ardour/ardour/dsp_filter.h @@ -26,6 +26,8 @@ #include <glibmm.h> #include <fftw3.h> +#include "pbd/malign.h" + #include "ardour/buffer_set.h" #include "ardour/chan_mapping.h" #include "ardour/libardour_visibility.h" @@ -62,7 +64,7 @@ namespace ARDOUR { namespace DSP { } ~DspShm () { - free (_data); + cache_aligned_free (_data); } /** [re] allocate memory in host's memory space @@ -71,7 +73,8 @@ namespace ARDOUR { namespace DSP { */ void allocate (size_t s) { if (s == _size) { return; } - _data = realloc (_data, sizeof(float) * s); + cache_aligned_free (_data); + cache_aligned_malloc ((void**) &_data, sizeof (float) * s); if (_data) { _size = s; } } |