Changeset 5d16185 for src/io/source.c
- Timestamp:
- Mar 22, 2013, 6:15:46 PM (12 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:
- dc798e1
- Parents:
- 6ff6d18 (diff), 18a378e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source.c
r6ff6d18 r5d16185 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 105 uint_t aubio_source_seek (aubio_source_t * s, uint_t seek ) { 106 #ifdef __APPLE__ 107 return aubio_source_apple_audio_seek ((aubio_source_apple_audio_t *)s->source, seek); 108 #else /* __APPLE__ */ 109 #if HAVE_SNDFILE 110 return aubio_source_sndfile_seek ((aubio_source_sndfile_t *)s->source, seek); 111 #endif /* HAVE_SNDFILE */ 112 #endif /* __APPLE__ */ 113 }
Note: See TracChangeset
for help on using the changeset viewer.