void OnDestroy() { LibPD.Bang -= ReceiveDebugBang; LibPD.Float -= ReceiveDebugFloat; LibPD.Symbol -= ReceiveDebugSymbol; LibPD.List -= ReceiveDebugList; LibPD.Message -= ReceiveDebugMessage; LibPD.Unsubscribe("Debug"); }
void Dispose(bool isDisposing) { LibPD.Unsubscribe(DoneReceiver); LibPD.ComputeAudio(false); if (_patchHandle > 0) { LibPD.ClosePatch(_patchHandle); } }
public virtual void testSubscription() { Assert.False(LibPD.Exists("baz")); Assert.False(LibPD.Subscribe(null)); Assert.True(LibPD.Subscribe("baz")); Assert.True(LibPD.Exists("baz")); Assert.False(LibPD.Unsubscribe(null)); Assert.False(LibPD.Unsubscribe("")); Assert.True(LibPD.Unsubscribe("baz")); Assert.False(LibPD.Exists("baz")); }
void Dispose(bool isDisposing) { // Unsubscribe from all message receivers LibPD.Unsubscribe(CursorReceiver); LibPD.Float -= LibPd_Float; // Disable audio LibPD.ComputeAudio(false); if (_patchHandle > 0) { // Close patch LibPD.ClosePatch(_patchHandle); } LibPD.Release(); }
public static void UnsubscribeBang(string name) { LibPD.Unsubscribe(name); }
public static void UnsubscribeFloat(string name) { LibPD.Unsubscribe(name); }