示例#1
0
 /// <summary>
 /// Stops audio computation.
 /// </summary>
 public void Stop()
 {
     MessageInvocation.SendMessage("pd", "dsp", new Float(0));
     IsComputing = false;
 }
示例#2
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));
 }
示例#3
0
 /// <summary>
 /// Starts audio computation.
 /// </summary>
 public void Start()
 {
     Audio.init_audio(Inputs, Outputs, SampleRate);
     MessageInvocation.SendMessage("pd", "dsp", new Float(1));
     IsComputing = true;
 }
示例#4
0
 void IMessaging.Send(string receiver, string message, params IAtom[] atoms)
 {
     MessageInvocation.SendMessage(receiver, message, atoms);
 }