shithub: aubio

Download patch

ref: 847b37495ed71e9020cab0c0ca47aaf4c1d4ba76
parent: f3bee7942e1bf543557dfe1c364debdfd25a1153
author: Paul Brossier <piem@piem.org>
date: Thu Oct 1 20:30:05 EDT 2009

examples/utils.c: use fvec_zeros()

--- a/examples/utils.c
+++ b/examples/utils.c
@@ -421,11 +421,7 @@
 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 ();