Update of /cvsroot/pure-data/externals/tb/sndfiler In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30047
Modified Files: sndfiler.c Log Message: multichannel fix
Index: sndfiler.c =================================================================== RCS file: /cvsroot/pure-data/externals/tb/sndfiler/sndfiler.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sndfiler.c 10 Sep 2005 15:47:23 -0000 1.1 --- sndfiler.c 23 Oct 2005 22:04:51 -0000 1.2 *************** *** 222,225 **** --- 222,226 ---- t_float * item = alloca(maxchannels * sizeof(t_float));
+ t_int ** syncdata = getbytes(sizeof(t_int*) * 5); *************** *** 236,247 **** for (i = 0; i != info.frames; ++i) { ! sf_read_float(sndfile, item, 1);
! for (j = 0; j != channel_count; ++j) { ! if (j < minchannels) helper_arrays[j][i] = item[j]; ! else ! helper_arrays[j][i] = 0; } } --- 237,248 ---- for (i = 0; i != info.frames; ++i) { ! sf_read_float(sndfile, item, info.channels);
! for (j = 0; j != info.channels; ++j) { ! if (j < channel_count) ! { helper_arrays[j][i] = item[j]; ! } } }