- Timestamp:
- Jul 14, 2012, 1:33:45 AM (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:
- 9b1e101
- Parents:
- 4722e63
- Location:
- src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubio.h
r4722e63 rafbd7e7 175 175 #include "onset/peakpicker.h" 176 176 #include "tempo/tempo.h" 177 #include "io/sndfileio.h" 177 178 #include "io/source.h" 179 #include "io/source_sndfile.h" 180 #include "io/source_apple_audio.h" 178 181 #include "io/sink.h" 179 #include "io/source_apple_audio.h"180 182 181 183 #if AUBIO_UNSTABLE -
src/io/source.c
r4722e63 rafbd7e7 26 26 #include "io/source_apple_audio_file.h" 27 27 #endif /* __APPLE__ */ 28 #ifdef HAVE_SNDFILE 29 #include "io/source_sndfile.h" 30 #endif 28 31 29 32 struct _aubio_source_t { … … 31 34 }; 32 35 33 aubio_source_t * new_aubio_source(char_t * uri, uint_t hop_size, uint_t samplerate) {36 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size) { 34 37 aubio_source_t * s = AUBIO_NEW(aubio_source_t); 35 38 #ifdef __APPLE__ 36 s->source= (void *)new_aubio_source_apple_audio(uri, hop_size, samplerate); 39 s->source= (void *)new_aubio_source_apple_audio(uri, samplerate, hop_size); 40 if (s->source) return s; 41 #else /* __APPLE__ */ 42 #if HAVE_SNDFILE 43 s->source= (void *)new_aubio_source_sndfile(uri, samplerate, hop_size); 44 if (s->source) return s; 45 #endif /* HAVE_SNDFILE */ 37 46 #endif /* __APPLE__ */ 38 47 if (s->source == NULL) return NULL; 39 return s;40 48 } 41 49 … … 43 51 #ifdef __APPLE__ 44 52 aubio_source_apple_audio_do((aubio_source_apple_audio_t *)s->source, data, read); 53 #else /* __APPLE__ */ 54 #if HAVE_SNDFILE 55 aubio_source_sndfile_do((aubio_source_sndfile_t *)s->source, data, read); 56 #endif /* HAVE_SNDFILE */ 45 57 #endif /* __APPLE__ */ 46 58 } … … 49 61 #ifdef __APPLE__ 50 62 del_aubio_source_apple_audio((aubio_source_apple_audio_t *)s->source); 63 #else /* __APPLE__ */ 64 #if HAVE_SNDFILE 65 del_aubio_source_sndfile((aubio_source_sndfile_t *)s->source); 66 #endif /* HAVE_SNDFILE */ 51 67 #endif /* __APPLE__ */ 52 68 AUBIO_FREE(s); -
src/wscript_build
r4722e63 rafbd7e7 10 10 if 'HAVE_SAMPLERATE': 11 11 uselib += ['SAMPLERATE'] 12 13 if 'HAVE_SNDFILE': 14 uselib += ['SNDFILE'] 12 15 13 16 # build libaubio
Note: See TracChangeset
for help on using the changeset viewer.