[Gridflow-cvs] [svn] commit: r3388 - in /trunk/format: quicktimehw.c x11.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Apr 1 14:10:03 EDT 2008


Author: matju
Date: Tue Apr  1 14:10:02 2008
New Revision: 3388

Log:
stop using Ruby-based send_out

Modified:
    trunk/format/quicktimehw.c
    trunk/format/x11.c

Modified: trunk/format/quicktimehw.c
==============================================================================
--- trunk/format/quicktimehw.c (original)
+++ trunk/format/quicktimehw.c Tue Apr  1 14:10:02 2008
@@ -174,8 +174,9 @@
 	SETFLOAT(a,(float)length);
 	outlet_anything(bself->te_outlet,gensym("frames"),1,a);
 */
-	Ruby a[] = {INT2NUM(1),SYM(frames),INT2NUM(length)};
-	send_out(3,a);
+	t_atom a[1];
+	SETFLOAT(a,length);
+	outlet_anything(bself->out[0],gensym("frames"),1,a);
 	//SUPER;
 }
 

Modified: trunk/format/x11.c
==============================================================================
--- trunk/format/x11.c (original)
+++ trunk/format/x11.c Tue Apr  1 14:10:02 2008
@@ -170,10 +170,11 @@
 }
 
 void FormatX11::report_pointer(int y, int x, int state) {
-	Ruby argv[5] = {
-		INT2NUM(0), SYM(position),
-		INT2NUM(y), INT2NUM(x), INT2NUM(state) };
-	send_out(COUNT(argv),argv);
+	t_atom a[3];
+	SETFLOAT(a+0,y);
+	SETFLOAT(a+1,x);
+	SETFLOAT(a+2,state);
+	outlet_anything(bself->out[0],gensym("position"),COUNT(a),a);
 }
 
 void FormatX11::call() {



More information about the Gridflow-cvs mailing list