13
0

OSX fix (no posix_memalign)

git-svn-id: svn://localhost/ardour2/trunk@729 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2006-08-01 03:34:14 +00:00
parent f00420a7b9
commit a6e46c331b

View File

@ -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