mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
OSX fix (no posix_memalign)
git-svn-id: svn://localhost/ardour2/trunk@729 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f00420a7b9
commit
a6e46c331b
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ public:
|
||||||
{
|
{
|
||||||
_size = capacity; // For audio buffers, size = capacity (always)
|
_size = capacity; // For audio buffers, size = capacity (always)
|
||||||
#ifdef NO_POSIX_MEMALIGN
|
#ifdef NO_POSIX_MEMALIGN
|
||||||
b = (Sample *) malloc(sizeof(Sample) * capacity);
|
_data = (Sample *) malloc(sizeof(Sample) * capacity);
|
||||||
#else
|
#else
|
||||||
posix_memalign((void**)_data, 16, sizeof(Sample) * capacity);
|
posix_memalign((void**)_data, 16, sizeof(Sample) * capacity);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue