Changeset 779966b
- Timestamp:
- Jul 15, 2012, 10:54:38 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:
- 0b5b7b2
- Parents:
- 5d1f716
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink.c
r5d1f716 r779966b 45 45 #endif /* HAVE_SNDFILE */ 46 46 #endif /* __APPLE__ */ 47 if (s->sink == NULL) { AUBIO_FREE(s); return NULL; } 47 AUBIO_ERROR("failed opening %s", uri); 48 AUBIO_FREE(s); 49 return NULL; 48 50 } 49 51 50 52 void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t write) { 53 #ifdef __APPLE__ 54 aubio_sink_apple_audio_do((aubio_sink_apple_audio_t *)s->sink, write_data, write); 55 #else /* __APPLE__ */ 56 #if HAVE_SNDFILE 57 aubio_sink_sndfile_do((aubio_sink_sndfile_t *)s->sink, write_data, write); 58 #endif /* HAVE_SNDFILE */ 59 #endif /* __APPLE__ */ 51 60 } 52 61 53 62 void del_aubio_sink(aubio_sink_t * s) { 63 if (!s) return; 64 #ifdef __APPLE__ 65 del_aubio_sink_apple_audio((aubio_sink_apple_audio_t *)s->sink); 66 #else /* __APPLE__ */ 67 #if HAVE_SNDFILE 68 del_aubio_sink_sndfile((aubio_sink_sndfile_t *)s->sink); 69 #endif /* HAVE_SNDFILE */ 70 #endif /* __APPLE__ */ 54 71 AUBIO_FREE(s); 55 72 return;
Note: See TracChangeset
for help on using the changeset viewer.