Changeset d00e223


Ignore:
Timestamp:
Jul 27, 2012, 6:39:05 PM (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:
85ebab8
Parents:
01e158d
Message:

src/io/source.h: add get_samplerate

Location:
src/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.c

    r01e158d rd00e223  
    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
  • src/io/source.h

    r01e158d rd00e223  
    3535aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size);
    3636void aubio_source_do(aubio_source_t * s, fvec_t * read_data, uint_t * read);
     37uint_t aubio_source_get_samplerate(aubio_source_t * s);
    3738void del_aubio_source(aubio_source_t * s);
    3839
Note: See TracChangeset for help on using the changeset viewer.