Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26664
Modified Files: Tag: desiredata d_soundfile.c Log Message: introducing t_param
Index: d_soundfile.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v retrieving revision 1.4.4.11.2.10.2.22 retrieving revision 1.4.4.11.2.10.2.23 diff -C2 -d -r1.4.4.11.2.10.2.22 -r1.4.4.11.2.10.2.23 *** d_soundfile.c 19 Jul 2007 16:24:21 -0000 1.4.4.11.2.10.2.22 --- d_soundfile.c 19 Jul 2007 20:17:26 -0000 1.4.4.11.2.10.2.23 *************** *** 107,140 **** #define WAV_FLOAT 3
! /* the AIFF header. I'm assuming AIFC is compatible but don't really know ! that. */
struct t_datachunk { ! char id[4]; /* data chunk id 'SSND' */ ! uint32 size; /* length of data chunk */ ! uint32 offset; /* additional offset in bytes */ ! uint32 block; /* block size */ [...1056 lines suppressed...] x->bigendian = bigendian; --- 2008,2012 ---- sfread_cond_wait(&x->answercondition, &x->mutex); } ! x->bytespersample = bytespersample; x->swap = swap; x->bigendian = bigendian; *************** *** 2015,2019 **** x->fileerror = 0; x->state = STATE_STARTUP; ! x->bytespersample = (bytespersamp > 2 ? bytespersamp : 2); if (samplerate > 0) x->samplerate = samplerate; else if (x->insamplerate > 0) x->samplerate = x->insamplerate; --- 2020,2024 ---- x->fileerror = 0; x->state = STATE_STARTUP; ! x->bytespersample = (bytespersample > 2 ? bytespersample : 2); if (samplerate > 0) x->samplerate = samplerate; else if (x->insamplerate > 0) x->samplerate = x->insamplerate;