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