From 847b37495ed71e9020cab0c0ca47aaf4c1d4ba76 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 2 Oct 2009 00:30:05 +0200 Subject: [PATCH] examples/utils.c: use fvec_zeros() --- examples/utils.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 (); -- 2.26.2