[PD-cvs] pd/src d_soundfile.c,1.4.4.7,1.4.4.8

Tim Blechmann timblech at users.sourceforge.net
Thu Dec 2 16:22:36 CET 2004


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

Modified Files:
      Tag: devel_0_38
	d_soundfile.c 
Log Message:
bugfix in idle callbacks

Index: d_soundfile.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_soundfile.c,v
retrieving revision 1.4.4.7
retrieving revision 1.4.4.8
diff -C2 -d -r1.4.4.7 -r1.4.4.8
*** d_soundfile.c	30 Nov 2004 09:50:47 -0000	1.4.4.7
--- d_soundfile.c	2 Dec 2004 15:22:33 -0000	1.4.4.8
***************
*** 1171,1175 ****
  	pthread_cond_t resume_after_callback = PTHREAD_COND_INITIALIZER;
  	pthread_mutex_t resume_after_callback_mutex = PTHREAD_MUTEX_INITIALIZER; /* dummy */
! 	t_int outargs[2];
  	
      while (argc > 0 && argv->a_type == A_SYMBOL &&
--- 1171,1175 ----
  	pthread_cond_t resume_after_callback = PTHREAD_COND_INITIALIZER;
  	pthread_mutex_t resume_after_callback_mutex = PTHREAD_MUTEX_INITIALIZER; /* dummy */
! 	t_int* outargs;
  	
      while (argc > 0 && argv->a_type == A_SYMBOL &&
***************
*** 1395,1399 ****
  	for (i = 0; i < argc; i++)
  	{
! 		t_int w[2];
  		
  		w[0] = (t_int)(garrays[i]);
--- 1395,1399 ----
  	for (i = 0; i < argc; i++)
  	{
! 		t_int* w = (t_int*)getbytes(2*sizeof(t_int));
  		
  		w[0] = (t_int)(garrays[i]);
***************
*** 1422,1425 ****
--- 1422,1426 ----
  #endif
  	
+ 	outargs = (t_int*)getbytes(2*sizeof(t_int));
  	outargs[0] = (t_int)x->x_obj.ob_outlet;
  	outargs[1] = (t_int)itemsread;
***************
*** 1469,1472 ****
--- 1470,1474 ----
  	/* if this is the only array in the graph,
  	   reset the graph's coordinates */
+ 
  	gl = garray->x_glist;
  	if (gl->gl_list == &garray->x_gobj && !garray->x_gobj.g_next)
***************
*** 1480,1483 ****
--- 1482,1486 ----
  		garray_redraw(garray);
  
+ /* 	freebytes(w, 2*sizeof(t_int)); */
  	return 0;
  }
***************
*** 1490,1494 ****
  	
  	outlet_float (outlet, itemsread);
! 	
  	return 0;
  }
--- 1493,1498 ----
  	
  	outlet_float (outlet, itemsread);
! 
! /* 	freebytes(w, 2*sizeof(t_int)); */
  	return 0;
  }





More information about the Pd-cvs mailing list