Esempio n. 1
0
 void IMessaging.SendArray(string[] receivers, IAtom[] atoms)
 {
     for (int i = 0; i < receivers.Length; i++)
     {
         MessageInvocation.Send(receivers[i], atoms[i]);
     }
 }
Esempio n. 2
0
 void IMessaging.Send(string receiver, params IAtom[] atoms)
 {
     if (atoms.Length == 1)
     {
         MessageInvocation.Send(receiver, atoms[0]);
         return;
     }
     MessageInvocation.SendList(receiver, atoms);
 }
Esempio n. 3
0
 /// <summary>
 /// Stops audio computation.
 /// </summary>
 public void Stop()
 {
     MessageInvocation.SendMessage("pd", "dsp", new Float(0));
     IsComputing = false;
 }
Esempio n. 4
0
 /// <summary>
 /// Starts audio computation.
 /// </summary>
 public void Start()
 {
     Audio.init_audio(Inputs, Outputs, SampleRate);
     MessageInvocation.SendMessage("pd", "dsp", new Float(1));
     IsComputing = true;
 }
Esempio n. 5
0
 public MessageEventArgs(string recv, string msg, int argc, IntPtr argv)
 {
     Receiver = recv;
     Message  = msg;
     List     = MessageInvocation.ConvertList(argc, argv);
 }
Esempio n. 6
0
 /// <summary>
 /// Resizes the Pd array.
 ///
 /// NB: This is an expensive method, use sparingly.
 /// </summary>
 /// <param name="length">The new size of the array.</param>
 public void Resize(int length)
 {
     MessageInvocation.SendMessage(_name, "resize", new Float(length));
 }
Esempio n. 7
0
 public ListEventArgs(string recv, int argc, IntPtr argv)
 {
     Receiver = recv;
     List     = MessageInvocation.ConvertList(argc, argv);
 }
Esempio n. 8
0
 public void Send(string receiver, Bang bang)
 {
     MessageInvocation.SendBang(receiver);
 }
Esempio n. 9
0
 void IMessaging.Send(string receiver, string message, params IAtom[] atoms)
 {
     MessageInvocation.SendMessage(receiver, message, atoms);
 }