Changeset 52d6145


Ignore:
Timestamp:
Mar 23, 2013, 12:33:01 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
2525f81
Parents:
db120ac (diff), 987fb86 (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.
Message:

Merge /Users/piem/projects/aubio/aubio into device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_apple_audio.c

    rdb120ac r52d6145  
    238238
    239239uint_t aubio_source_apple_audio_seek (aubio_source_apple_audio_t * s, uint_t pos) {
     240  if (1) {
     241    AudioBufferList *bufferList = &s->bufferList;
     242    UInt32 samples = s->block_size * s->channels;
     243    Float64 rateRatio = s->samplerate / s->source_samplerate;
     244    uint_t segmentSize= (uint_t)(samples * rateRatio + .5);
     245    bufferList->mBuffers[0].mDataByteSize = segmentSize * sizeof(short);
     246  }
    240247  SInt64 resampled_pos = (SInt64)ROUND( pos * s->source_samplerate * 1. / s->samplerate );
    241248  OSStatus err = ExtAudioFileSeek(s->audioFile, resampled_pos);
Note: See TracChangeset for help on using the changeset viewer.