[PD-cvs] pd/src desire.c,1.1.2.217.2.225,1.1.2.217.2.226

Mathieu Bouchard matju at users.sourceforge.net
Sat Aug 18 09:05:23 CEST 2007


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

Modified Files:
      Tag: desiredata
	desire.c 
Log Message:
added method for querying elapsed time for all objects in a canvas


Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.217.2.225
retrieving revision 1.1.2.217.2.226
diff -C2 -d -r1.1.2.217.2.225 -r1.1.2.217.2.226
*** desire.c	18 Aug 2007 05:52:10 -0000	1.1.2.217.2.225
--- desire.c	18 Aug 2007 07:05:19 -0000	1.1.2.217.2.226
***************
*** 165,168 ****
--- 165,169 ----
  	self->visual = new t_visual(1);
  	self->index = 0;
+ 	self->elapsed = 0;
  	return self;
  }
***************
*** 6763,6766 ****
--- 6764,6773 ----
  }
  
+ static void canvas_get_elapsed (t_canvas *x) {
+ 	canvas_each(y,x) {
+ 		sys_mgui(y,"elapsed","f",y->dix->elapsed / 800000000.0);
+ 	}
+ }
+ 
  static void g_canvas_setup() {
      reply_class = class_new2("reply",0,reply_free,sizeof(t_reply),CLASS_GOBJ,"!");
***************
*** 6821,6824 ****
--- 6828,6832 ----
      class_addmethod2(c,canvas_with_reply,"with_reply","*");
      class_addmethod2(pd_canvasmaker._class,canvas_with_reply,"with_reply","*");
+     class_addmethod2(c,canvas_get_elapsed,"get_elapsed","");
      class_setnotice(c, canvas_notice);
      class_setonsubscribe(c, canvas_onsubscribe);





More information about the Pd-cvs mailing list