From: Paul Brossier Date: Thu, 1 Oct 2009 22:30:05 +0000 (+0200) Subject: examples/utils.c: use fvec_zeros() X-Git-Tag: bzr2git~235 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=847b37495ed71e9020cab0c0ca47aaf4c1d4ba76;p=aubio.git examples/utils.c: use fvec_zeros() --- diff --git a/examples/utils.c b/examples/utils.c index 64d7ee20..6b6e337c 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -421,11 +421,7 @@ void flush_process (aubio_process_func_t process_func, aubio_print_func_t print) { uint_t i, j; - for (i = 0; i < channels; i++) { - for (j = 0; j < obuf->length; j++) { - fvec_write_sample (obuf, 0., i, j); - } - } + fvec_zeros(obuf); for (i = 0; (signed) i < frames_delay; i++) { process_func (ibuf->data, obuf->data, overlap_size); print ();