[PD-cvs] pd/src d_soundfile.c, 1.4.4.11.2.10.2.10, 1.4.4.11.2.10.2.11

Mathieu Bouchard matju at users.sourceforge.net
Wed Jul 4 22:57:14 CEST 2007


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

Modified Files:
      Tag: desiredata
	d_soundfile.c 
Log Message:
fix for saving -rate for .aiff files


Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.4.4.11.2.10.2.10
retrieving revision 1.4.4.11.2.10.2.11
diff -C2 -d -r1.4.4.11.2.10.2.10 -r1.4.4.11.2.10.2.11
*** d_soundfile.c	4 Jul 2007 20:25:43 -0000	1.4.4.11.2.10.2.10
--- d_soundfile.c	4 Jul 2007 20:57:12 -0000	1.4.4.11.2.10.2.11
***************
*** 516,519 ****
--- 516,524 ----
          memset(aiffhdr->samprate + sizeof(dogdoo) + 4, 0, 8);
          headersize = AIFFPLUS;
+ 
+ 	/* fix by matju for häfeli, 2007.07.04, but really, dogdoo should be removed */
+ 	while (samplerate >= 0x10000) {aiffhdr->samprate[1]++; samplerate/=2;}
+ 	aiffhdr->samprate[2] = (long)samplerate>>8;
+ 	aiffhdr->samprate[3] = (long)samplerate;
      } else {   /* WAVE format */
          long datasize = nframes * nchannels * bytespersamp;





More information about the Pd-cvs mailing list