projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7b3629
)
ext/sndfileio.c: cat to sndfile native type
author
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 05:07:11 +0000
(07:07 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 05:07:11 +0000
(07:07 +0200)
ext/sndfileio.c
patch
|
blob
|
history
diff --git
a/ext/sndfileio.c
b/ext/sndfileio.c
index ebaa943c1911181366961b59b447f33c474b941d..fd37bab3c2fdd63928dfc73e17dde0f95acaf62f 100644
(file)
--- a/
ext/sndfileio.c
+++ b/
ext/sndfileio.c
@@
-148,7
+148,7
@@
int aubio_sndfile_read(aubio_sndfile_t * f, int frames, fvec_t * read) {
/* de-interleaving data */
for (i=0; i<channels; i++) {
- pread = fvec_get_channel(read,i);
+ pread =
(float *)
fvec_get_channel(read,i);
for (j=0; j<aread; j++) {
pread[j] = f->tmpdata[channels*j+i];
}
@@
-178,7
+178,7
@@
int aubio_sndfile_write(aubio_sndfile_t * f, int frames, fvec_t * write) {
/* interleaving data */
for (i=0; i<channels; i++) {
- pwrite = fvec_get_channel(write,i);
+ pwrite =
(float *)
fvec_get_channel(write,i);
for (j=0; j<frames; j++) {
f->tmpdata[channels*j+i] = pwrite[j];
}