projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a559796
)
src/io/source_apple_audio.c: do_multi do not write outside of matrix
author
Paul Brossier
<piem@piem.org>
Sun, 23 Feb 2014 14:54:19 +0000
(11:54 -0300)
committer
Paul Brossier
<piem@piem.org>
Sun, 23 Feb 2014 14:54:19 +0000
(11:54 -0300)
src/io/source_apple_audio.c
patch
|
blob
|
history
diff --git
a/src/io/source_apple_audio.c
b/src/io/source_apple_audio.c
index
b0fce40
..
0426107
100644
(file)
--- a/
src/io/source_apple_audio.c
+++ b/
src/io/source_apple_audio.c
@@
-226,7
+226,7
@@
void aubio_source_apple_audio_do_multi(aubio_source_apple_audio_t *s, fmat_t * r
smpl_t **buf = read_to->data;
for (v = 0; v < loadedPackets; v++) {
- for (c = 0; c <
s->channels
; c++) {
+ for (c = 0; c <
read_to->height
; c++) {
buf[c][v] = SHORT_TO_FLOAT(data[ v * s->channels + c]);
}
}