projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58c24e1
)
src/io/source_sndfile.c: write 0 to all channels in case of short read
author
Paul Brossier
<piem@piem.org>
Mon, 8 Apr 2013 21:22:19 +0000
(16:22 -0500)
committer
Paul Brossier
<piem@piem.org>
Mon, 8 Apr 2013 21:22:19 +0000
(16:22 -0500)
src/io/source_sndfile.c
patch
|
blob
|
history
diff --git
a/src/io/source_sndfile.c
b/src/io/source_sndfile.c
index e6d99020b234b798d4a185c7883c3f80268503a2..f46e67499911b65845f2ff1c71460049799aa716 100644
(file)
--- a/
src/io/source_sndfile.c
+++ b/
src/io/source_sndfile.c
@@
-223,7
+223,7
@@
void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_dat
*read = (int)FLOOR(s->ratio * read_samples / input_channels + .5);
if (*read < s->hop_size) {
- for (i = 0; i <
input_channels
; i++) {
+ for (i = 0; i <
read_data->height
; i++) {
for (j = *read; j < s->hop_size; j++) {
data[i][j] = 0.;
}