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
@ -119,7 +119,7 @@ public:
|
||||
{
|
||||
_size = capacity; // For audio buffers, size = capacity (always)
|
||||
#ifdef NO_POSIX_MEMALIGN
|
||||
b = (Sample *) malloc(sizeof(Sample) * capacity);
|
||||
_data = (Sample *) malloc(sizeof(Sample) * capacity);
|
||||
#else
|
||||
posix_memalign((void**)_data, 16, sizeof(Sample) * capacity);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user