Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6623
Modified Files: Tag: desiredata d_soundfile.c Log Message: removed unused vars and reformatted code
Index: d_soundfile.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v retrieving revision 1.4.4.11.2.10.2.3 retrieving revision 1.4.4.11.2.10.2.4 diff -C2 -d -r1.4.4.11.2.10.2.3 -r1.4.4.11.2.10.2.4 *** d_soundfile.c 20 Dec 2006 06:55:07 -0000 1.4.4.11.2.10.2.3 --- d_soundfile.c 20 Dec 2006 07:50:25 -0000 1.4.4.11.2.10.2.4 *************** *** 165,187 **** /* byte swappers */
! static uint32 swap4(uint32 n, int doit) ! { ! if (doit) ! return (((n & 0xff) << 24) | ((n & 0xff00) << 8) | ! ((n & 0xff0000) >> 8) | ((n & 0xff000000) >> 24)); ! else return (n); }
[...4324 lines suppressed...] --- 2349,2353 ---- class_addmethod(writesf_class, (t_method)writesf_stop, gensym("stop"), 0); class_addmethod(writesf_class, (t_method)writesf_dsp, gensym("dsp"), 0); ! class_addmethod(writesf_class, (t_method)writesf_open, gensym("open"), A_GIMME, 0); class_addmethod(writesf_class, (t_method)writesf_print, gensym("print"), 0); CLASS_MAINSIGNALIN(writesf_class, t_writesf, x_f); *************** *** 3200,3205 **** /* ------------------------ global setup routine ------------------------- */
! void d_soundfile_setup(void) ! { if (sizeof(uint16)!=2) bug("uint16 should really be 16 bits"); if (sizeof(uint32)!=4) bug("uint32 should really be 32 bits"); --- 2356,2360 ---- /* ------------------------ global setup routine ------------------------- */
! void d_soundfile_setup(void) { if (sizeof(uint16)!=2) bug("uint16 should really be 16 bits"); if (sizeof(uint32)!=4) bug("uint32 should really be 32 bits");