shithub: aubio

Download patch

ref: 39658e2641878feecdce154dcc7f4ae0053781fb
parent: e7b3629c5ee87107e053c83201fd5cd6850d9976
author: Paul Brossier <piem@piem.org>
date: Thu Sep 17 03:07:11 EDT 2009

ext/sndfileio.c: cat to sndfile native type

--- a/ext/sndfileio.c
+++ b/ext/sndfileio.c
@@ -148,7 +148,7 @@
 
         /* 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 @@
 
         /* 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];
                 }