[PD-cvs] pd/src d_soundfile.c,1.4.4.10,1.4.4.11

Mathieu Bouchard matju at users.sourceforge.net
Wed Mar 9 00:41:45 CET 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3492

Modified Files:
      Tag: devel_0_38
	d_soundfile.c 
Log Message:
fix for amd64: uint32 really 32 bits now


Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.4.4.10
retrieving revision 1.4.4.11
diff -C2 -d -r1.4.4.10 -r1.4.4.11
*** d_soundfile.c	11 Jan 2005 21:41:14 -0000	1.4.4.10
--- d_soundfile.c	8 Mar 2005 23:41:39 -0000	1.4.4.11
***************
*** 34,38 ****
  
  typedef unsigned short uint16;
! typedef unsigned long uint32;
  
  #define FORMAT_WAVE 0
--- 34,38 ----
  
  typedef unsigned short uint16;
! typedef unsigned int uint32; /* long isn't 32-bit on amd64 */
  
  #define FORMAT_WAVE 0
***************
*** 62,68 ****
      always; same for AIFF and the "COMM" chunk.   */
  
- typedef unsigned word;
- typedef unsigned long dword;
- 
  typedef struct _wave
  {
--- 62,65 ----
***************
*** 3337,3343 ****
  void d_soundfile_setup(void)
  {
      soundfiler_setup();
      readsf_setup();
      writesf_setup();
  }
- 
--- 3334,3341 ----
  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");
      soundfiler_setup();
      readsf_setup();
      writesf_setup();
  }





More information about the Pd-cvs mailing list