Changeset 52ca8a3 for src/io/sink.c


Ignore:
Timestamp:
Jan 24, 2014, 5:22:00 PM (11 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:
5cb8abe
Parents:
5ab8e59
Message:

src/io/sink_wavwrite.c: add native basic wav writer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink.c

    r5ab8e59 r52ca8a3  
    2828#ifdef HAVE_SNDFILE
    2929#include "io/sink_sndfile.h"
     30#endif
     31#ifdef HAVE_WAVWRITE
     32#include "io/sink_wavwrite.h"
    3033#endif
    3134
     
    6770  }
    6871#endif /* HAVE_SNDFILE */
     72#if HAVE_WAVWRITE
     73  s->sink = (void *)new_aubio_sink_wavwrite(uri, samplerate);
     74  if (s->sink) {
     75    s->s_do = (aubio_sink_do_t)(aubio_sink_wavwrite_do);
     76    s->s_del = (del_aubio_sink_t)(del_aubio_sink_wavwrite);
     77    return s;
     78  }
     79#endif /* HAVE_WAVWRITE */
    6980  AUBIO_ERROR("sink: failed creating aubio sink with %s\n", uri);
    7081  AUBIO_FREE(s);
Note: See TracChangeset for help on using the changeset viewer.