Changeset 944c7e1 for src/io/source.c


Ignore:
Timestamp:
Feb 10, 2013, 5:12:28 AM (11 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:
87b0c03
Parents:
f8ee337
Message:

src/io/source_apple_audio.c: automagically set samplerate if 0 was requested, add _get_samplerate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.c

    rf8ee337 r944c7e1  
    7272}
    7373
     74uint_t aubio_source_get_samplerate(aubio_source_t * s) {
     75#ifdef __APPLE__
     76  return aubio_source_apple_audio_get_samplerate((aubio_source_apple_audio_t *)s->source);
     77#else /* __APPLE__ */
     78#if HAVE_SNDFILE
     79  return aubio_source_sndfile_get_samplerate((aubio_source_sndfile_t *)s->source);
     80#endif /* HAVE_SNDFILE */
     81#endif /* __APPLE__ */
     82}
     83
Note: See TracChangeset for help on using the changeset viewer.