Changeset 2525f81 for src/io/utils_apple_audio.c
- Timestamp:
- Mar 23, 2013, 1:10:02 AM (12 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- c19f9e5
- Parents:
- 52d6145 (diff), 19f222d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/utils_apple_audio.c
r52d6145 r2525f81 5 5 // ExtAudioFileRef, AudioStreamBasicDescription, AudioBufferList, ... 6 6 #include <AudioToolbox/AudioToolbox.h> 7 #include "aubio_priv.h" 7 8 8 9 int createAubioBufferList(AudioBufferList *bufferList, int channels, int segmentSize); … … 13 14 bufferList->mNumberBuffers = 1; 14 15 bufferList->mBuffers[0].mNumberChannels = channels; 15 bufferList->mBuffers[0].mData = (short *)malloc(segmentSize * sizeof(short));16 bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, segmentSize); 16 17 bufferList->mBuffers[0].mDataByteSize = segmentSize * sizeof(short); 17 18 return 0; … … 23 24 for (i = 0; i < bufferList->mNumberBuffers; i++) { 24 25 if (bufferList->mBuffers[i].mData) { 25 free(bufferList->mBuffers[i].mData);26 AUBIO_FREE(bufferList->mBuffers[i].mData); 26 27 bufferList->mBuffers[i].mData = NULL; 27 28 }
Note: See TracChangeset
for help on using the changeset viewer.