projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3bee79
)
examples/utils.c: use fvec_zeros()
author
Paul Brossier
<piem@piem.org>
Thu, 1 Oct 2009 22:30:05 +0000
(
00:30
+0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 1 Oct 2009 22:30:05 +0000
(
00:30
+0200)
examples/utils.c
patch
|
blob
|
history
diff --git
a/examples/utils.c
b/examples/utils.c
index 64d7ee202d1e0f1f433212bbccea468831e080a2..6b6e337cd356f4eeb82c89acda0760076a548e8e 100644
(file)
--- 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 ();