From: Paul Brossier Date: Fri, 13 Jul 2012 19:05:32 +0000 (-0600) Subject: src/io/sink.*: fix prototypes, draft implementation X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d75b463d1e048823c070a48afb05a8e35fbfbb3;p=aubio.git src/io/sink.*: fix prototypes, draft implementation --- diff --git a/src/io/sink.c b/src/io/sink.c index ddc5ca9f..8d678264 100644 --- a/src/io/sink.c +++ b/src/io/sink.c @@ -29,13 +29,14 @@ struct _aubio_sink_t { }; aubio_sink_t * new_aubio_sink(char_t * uri, uint_t hop_size, uint_t samplerate) { - return NULL; + aubio_sink_t * s = AUBIO_NEW(aubio_sink_t); + return s; } -uint_t aubio_sink_do(aubio_sink_t * s, fvec_t * write_data) { - return 0; +void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t * written) { } void del_aubio_sink(aubio_sink_t * s) { + AUBIO_FREE(s); return; } diff --git a/src/io/sink.h b/src/io/sink.h index 7449a9f9..e330015f 100644 --- a/src/io/sink.h +++ b/src/io/sink.h @@ -32,8 +32,8 @@ extern "C" { */ typedef struct _aubio_sink_t aubio_sink_t; -aubio_sink_t * new_aubio_sink(char_t * uri, uint_t hop_size, uint_t samplerate); -uint_t aubio_sink_do(aubio_sink_t * s, fvec_t * write_data); +aubio_sink_t * new_aubio_sink(char_t * method, uint_t hop_size, uint_t samplerate); +void aubio_sink_do(aubio_sink_t * s, fvec_t * write_data, uint_t * written); void del_aubio_sink(aubio_sink_t * s); #ifdef __cplusplus