Changeset 4865e4b for src/io/source.c
- Timestamp:
- Mar 22, 2013, 2:29:19 AM (11 years ago)
- 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:
- ae9fd90
- Parents:
- 7982203
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.c
r7982203 r4865e4b 22 22 #include "aubio_priv.h" 23 23 #include "fvec.h" 24 #include "fmat.h" 24 25 #include "io/source.h" 25 26 #ifdef __APPLE__ … … 60 61 } 61 62 63 void aubio_source_do_multi(aubio_source_t * s, fmat_t * data, uint_t * read) { 64 #ifdef __APPLE__ 65 aubio_source_apple_audio_do_multi((aubio_source_apple_audio_t *)s->source, data, read); 66 #else /* __APPLE__ */ 67 #if HAVE_SNDFILE 68 aubio_source_sndfile_do_multi((aubio_source_sndfile_t *)s->source, data, read); 69 #endif /* HAVE_SNDFILE */ 70 #endif /* __APPLE__ */ 71 } 72 62 73 void del_aubio_source(aubio_source_t * s) { 63 74 if (!s) return; … … 82 93 } 83 94 95 uint_t aubio_source_get_channels(aubio_source_t * s) { 96 #ifdef __APPLE__ 97 return aubio_source_apple_audio_get_channels((aubio_source_apple_audio_t *)s->source); 98 #else /* __APPLE__ */ 99 #if HAVE_SNDFILE 100 return aubio_source_sndfile_get_channels((aubio_source_sndfile_t *)s->source); 101 #endif /* HAVE_SNDFILE */ 102 #endif /* __APPLE__ */ 103 } 104 84 105 uint_t aubio_source_seek (aubio_source_t * s, uint_t seek ) { 85 106 #ifdef __APPLE__
Note: See TracChangeset
for help on using the changeset viewer.