Changes in / [2525f81:52d6145]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/utils_apple_audio.c
r2525f81 r52d6145 5 5 // ExtAudioFileRef, AudioStreamBasicDescription, AudioBufferList, ... 6 6 #include <AudioToolbox/AudioToolbox.h> 7 #include "aubio_priv.h"8 7 9 8 int createAubioBufferList(AudioBufferList *bufferList, int channels, int segmentSize); … … 14 13 bufferList->mNumberBuffers = 1; 15 14 bufferList->mBuffers[0].mNumberChannels = channels; 16 bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, segmentSize);15 bufferList->mBuffers[0].mData = (short *)malloc(segmentSize * sizeof(short)); 17 16 bufferList->mBuffers[0].mDataByteSize = segmentSize * sizeof(short); 18 17 return 0; … … 24 23 for (i = 0; i < bufferList->mNumberBuffers; i++) { 25 24 if (bufferList->mBuffers[i].mData) { 26 AUBIO_FREE(bufferList->mBuffers[i].mData);25 free (bufferList->mBuffers[i].mData); 27 26 bufferList->mBuffers[i].mData = NULL; 28 27 } -
tests/src/io/test-source_seek.c
r2525f81 r52d6145 23 23 uint_t hop_size = 256; 24 24 uint_t n_frames = 0, read = 0; 25 uint_t old_n_frames;26 25 if ( argc == 3 ) samplerate = atoi(argv[2]); 27 26 if ( argc == 4 ) hop_size = atoi(argv[3]); … … 47 46 aubio_source_seek (s, 0); 48 47 49 old_n_frames = n_frames;50 51 48 n_frames = 0; 52 49 do { … … 63 60 del_fvec (vec); 64 61 65 assert ( n_frames == old_n_frames );66 62 return err; 67 63 }
Note: See TracChangeset
for help on using the changeset viewer.