Changes in / [2525f81:52d6145]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/utils_apple_audio.c

    r2525f81 r52d6145  
    55// ExtAudioFileRef, AudioStreamBasicDescription, AudioBufferList, ...
    66#include <AudioToolbox/AudioToolbox.h>
    7 #include "aubio_priv.h"
    87
    98int createAubioBufferList(AudioBufferList *bufferList, int channels, int segmentSize);
     
    1413  bufferList->mNumberBuffers = 1;
    1514  bufferList->mBuffers[0].mNumberChannels = channels;
    16   bufferList->mBuffers[0].mData = AUBIO_ARRAY(short, segmentSize);
     15  bufferList->mBuffers[0].mData = (short *)malloc(segmentSize * sizeof(short));
    1716  bufferList->mBuffers[0].mDataByteSize = segmentSize * sizeof(short);
    1817  return 0;
     
    2423  for (i = 0; i < bufferList->mNumberBuffers; i++) {
    2524    if (bufferList->mBuffers[i].mData) {
    26       AUBIO_FREE(bufferList->mBuffers[i].mData);
     25      free (bufferList->mBuffers[i].mData);
    2726      bufferList->mBuffers[i].mData = NULL;
    2827    }
  • tests/src/io/test-source_seek.c

    r2525f81 r52d6145  
    2323  uint_t hop_size = 256;
    2424  uint_t n_frames = 0, read = 0;
    25   uint_t old_n_frames;
    2625  if ( argc == 3 ) samplerate = atoi(argv[2]);
    2726  if ( argc == 4 ) hop_size = atoi(argv[3]);
     
    4746  aubio_source_seek (s, 0);
    4847
    49   old_n_frames = n_frames;
    50 
    5148  n_frames = 0;
    5249  do {
     
    6360  del_fvec (vec);
    6461
    65   assert ( n_frames == old_n_frames );
    6662  return err;
    6763}
Note: See TracChangeset for help on using the changeset viewer.