Changeset 52ca8a3


Ignore:
Timestamp:
Jan 24, 2014, 5:22:00 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
5cb8abe
Parents:
5ab8e59
Message:

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

Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • python/lib/generator.py

    r5ab8e59 r52ca8a3  
    5858      'sink_apple_audio',
    5959      'sink_sndfile',
     60      'sink_wavwrite',
    6061      'source',
    6162      'source_apple_audio',
  • src/aubio.h

    r5ab8e59 r52ca8a3  
    197197#include "io/sink_sndfile.h"
    198198#include "io/sink_apple_audio.h"
     199#include "io/sink_wavwrite.h"
    199200#include "io/audio_unit.h"
    200201#include "onset/peakpicker.h"
  • 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);
  • wscript

    r5ab8e59 r52ca8a3  
    230230
    231231    ctx.define('HAVE_WAVREAD', 1)
     232    ctx.define('HAVE_WAVWRITE', 1)
    232233
    233234    # use memcpy hacks
Note: See TracChangeset for help on using the changeset viewer.