[PD-cvs] pd/src d_soundfile.c,1.1.1.2.2.22,1.1.1.2.2.23

Tim Blechmann timblech at users.sourceforge.net
Sun Sep 12 20:27:41 CEST 2004


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

Modified Files:
      Tag: devel_0_37
	d_soundfile.c 
Log Message:
fix

Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.1.1.2.2.22
retrieving revision 1.1.1.2.2.23
diff -C2 -d -r1.1.1.2.2.22 -r1.1.1.2.2.23
*** d_soundfile.c	3 Sep 2004 07:46:26 -0000	1.1.1.2.2.22
--- d_soundfile.c	12 Sep 2004 18:27:38 -0000	1.1.1.2.2.23
***************
*** 1388,1395 ****
--- 1388,1403 ----
      bufframes = SAMPBUFSIZE / (channels * bytespersamp);
  
+ #ifdef SFDEBUG
+     post("buffers: %d", argc);
+     post("channels: %d", channels);
+ #endif
+ 
      /* allocate memory for new array */
      if (resize)
  	for (i = 0; i < argc; i++)
  	{
+ #ifdef SFDEBUG
+ 	    post("allocating buffer %d",i);
+ #endif
  #ifdef _POSIX_MEMLOCK
  	    munlockall();
***************
*** 1409,1416 ****
  	    }
  	    /* zero samples */
! 	    /* todo: this is not necessary at this point in the process, but
! 	       when we do that later, i had some problems */
! 	    if(i >= channels)
  		memset(nvecs[i],0,vecsize[i] * sizeof(t_float));
  	}
      else
--- 1417,1424 ----
  	    }
  	    /* zero samples */
! 	    if(i > channels)
! 	    {
  		memset(nvecs[i],0,vecsize[i] * sizeof(t_float));
+ 	    }
  	}
      else





More information about the Pd-cvs mailing list