Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/utils_apple_audio.c

    r19f222d rc833f56  
    1111CFURLRef getURLFromPath(const char * path);
    1212
    13 int createAubioBufferList(AudioBufferList * bufferList, int channels, int segmentSize) {
     13int createAubioBufferList(AudioBufferList * bufferList, int channels, int max_source_samples) {
    1414  bufferList->mNumberBuffers = 1;
    1515  bufferList->mBuffers[0].mNumberChannels = channels;
    16   bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, segmentSize);
    17   bufferList->mBuffers[0].mDataByteSize = segmentSize * sizeof(short);
     16  bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, max_source_samples);
     17  bufferList->mBuffers[0].mDataByteSize = max_source_samples * sizeof(short);
    1818  return 0;
    1919}
Note: See TracChangeset for help on using the changeset viewer.