[PD-cvs] externals/clr/PureData PureData.cs,1.5,1.6
Thomas Grill
xovo at users.sourceforge.net
Thu Mar 9 15:34:35 CET 2006
Update of /cvsroot/pure-data/externals/clr/PureData
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22039/clr/PureData
Modified Files:
PureData.cs
Log Message:
adapted to PD version 0.40
better handler flexibility and argument checking
added Zmölnigs counter example
Index: PureData.cs
===================================================================
RCS file: /cvsroot/pure-data/externals/clr/PureData/PureData.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** PureData.cs 9 Mar 2006 01:48:21 -0000 1.5
--- PureData.cs 9 Mar 2006 14:34:33 -0000 1.6
***************
*** 65,68 ****
--- 65,71 ----
internal extern static void Outlet(void *obj,int n,Symbol s,Atom[] l);
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ internal extern static void Outlet(void *obj,int n,object o);
+
// --------------------------------------------------------------------------
***************
*** 121,125 ****
// --------------------------------------------------------------------------
! protected delegate void MethodBang();
protected delegate void MethodFloat(float f);
protected delegate void MethodSymbol(Symbol s);
--- 124,128 ----
// --------------------------------------------------------------------------
! protected delegate void Method();
protected delegate void MethodFloat(float f);
protected delegate void MethodSymbol(Symbol s);
***************
*** 127,135 ****
protected delegate void MethodList(AtomList lst);
protected delegate void MethodAnything(int inlet,Symbol tag,AtomList lst);
// --------------------------------------------------------------------------
[MethodImplAttribute (MethodImplOptions.InternalCall)]
! protected extern static void AddMethod(int inlet,MethodBang m);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
--- 130,139 ----
protected delegate void MethodList(AtomList lst);
protected delegate void MethodAnything(int inlet,Symbol tag,AtomList lst);
+ protected delegate void MethodObject(int inlet,object o);
// --------------------------------------------------------------------------
[MethodImplAttribute (MethodImplOptions.InternalCall)]
! protected extern static void AddMethod(int inlet,Method m);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
***************
*** 146,155 ****
[MethodImplAttribute (MethodImplOptions.InternalCall)]
protected extern static void AddMethod(int inlet,Symbol sel,MethodAnything m);
protected static void AddMethod(int inlet,string sel,MethodAnything m) { AddMethod(inlet,new Symbol(sel),m); }
[MethodImplAttribute (MethodImplOptions.InternalCall)]
! protected extern static void AddMethod(int inlet,MethodAnything m);
// --------------------------------------------------------------------------
--- 150,182 ----
[MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,MethodAnything m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,Symbol sel,Method m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,Symbol sel,MethodFloat m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,Symbol sel,MethodSymbol m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,Symbol sel,MethodPointer m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void AddMethod(int inlet,Symbol sel,MethodList m);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
protected extern static void AddMethod(int inlet,Symbol sel,MethodAnything m);
+ protected static void AddMethod(int inlet,string sel,Method m) { AddMethod(inlet,new Symbol(sel),m); }
+ protected static void AddMethod(int inlet,string sel,MethodFloat m) { AddMethod(inlet,new Symbol(sel),m); }
+ protected static void AddMethod(int inlet,string sel,MethodSymbol m) { AddMethod(inlet,new Symbol(sel),m); }
+ protected static void AddMethod(int inlet,string sel,MethodPointer m) { AddMethod(inlet,new Symbol(sel),m); }
+ protected static void AddMethod(int inlet,string sel,MethodList m) { AddMethod(inlet,new Symbol(sel),m); }
protected static void AddMethod(int inlet,string sel,MethodAnything m) { AddMethod(inlet,new Symbol(sel),m); }
[MethodImplAttribute (MethodImplOptions.InternalCall)]
! protected extern static void AddMethod(int inlet,MethodObject m);
// --------------------------------------------------------------------------
***************
*** 185,188 ****
--- 212,217 ----
protected void Outlet(int n,Symbol s,Atom[] l) { Internal.Outlet(ptr,n,s,l); }
+ protected void OutletEx(int n,object o) { Internal.Outlet(ptr,n,o); }
+
// --------------------------------------------------------------------------
***************
*** 207,210 ****
--- 236,242 ----
[MethodImplAttribute (MethodImplOptions.InternalCall)]
protected extern static void Send(Symbol sym,Symbol s,Atom[] l);
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ protected extern static void SendEx(Symbol sym,object o);
}
}
More information about the Pd-cvs
mailing list