[io] [osx] switch to floating point AudioBufferList
authorPaul Brossier <piem@piem.org>
Wed, 19 Dec 2018 13:07:12 +0000 (14:07 +0100)
committerPaul Brossier <piem@piem.org>
Wed, 19 Dec 2018 13:07:12 +0000 (14:07 +0100)
src/io/utils_apple_audio.c

index 34c3578..a05d65d 100644 (file)
@@ -12,11 +12,12 @@ void freeAudioBufferList(AudioBufferList *bufferList);
 CFURLRef getURLFromPath(const char * path);
 char_t *getPrintableOSStatusError(char_t *str, OSStatus error);
 
-int createAubioBufferList(AudioBufferList * bufferList, int channels, int max_source_samples) {
+int createAudioBufferList(AudioBufferList * bufferList, int channels,
+    int max_source_samples) {
   bufferList->mNumberBuffers = 1;
   bufferList->mBuffers[0].mNumberChannels = channels;
-  bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, max_source_samples);
-  bufferList->mBuffers[0].mDataByteSize = max_source_samples * sizeof(short);
+  bufferList->mBuffers[0].mData = AUBIO_ARRAY(smpl_t, max_source_samples);
+  bufferList->mBuffers[0].mDataByteSize = max_source_samples * sizeof(smpl_t);
   return 0;
 }