From 4d75b463d1e048823c070a48afb05a8e35fbfbb3 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 13 Jul 2012 13:05:32 -0600 Subject: [PATCH] src/io/sink.*: fix prototypes, draft implementation --- src/io/sink.c | 7 ++++--- src/io/sink.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) 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 -- 2.26.2