Changeset 779966b for src


Ignore:
Timestamp:
Jul 15, 2012, 10:54:38 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:
0b5b7b2
Parents:
5d1f716
Message:

src/io/sink.c: implement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    r5d1f716 r779966b  
    4545#endif /* HAVE_SNDFILE */
    4646#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;
    4850}
    4951
    5052void 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__ */
    5160}
    5261
    5362void 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__ */
    5471  AUBIO_FREE(s);
    5572  return;
Note: See TracChangeset for help on using the changeset viewer.