Esempio n. 1
0
 void OnDestroy()
 {
     LibPD.Bang    -= ReceiveDebugBang;
     LibPD.Float   -= ReceiveDebugFloat;
     LibPD.Symbol  -= ReceiveDebugSymbol;
     LibPD.List    -= ReceiveDebugList;
     LibPD.Message -= ReceiveDebugMessage;
     LibPD.Unsubscribe("Debug");
 }
Esempio n. 2
0
 void Dispose(bool isDisposing)
 {
     LibPD.Unsubscribe(DoneReceiver);
     LibPD.ComputeAudio(false);
     if (_patchHandle > 0)
     {
         LibPD.ClosePatch(_patchHandle);
     }
 }
Esempio n. 3
0
 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"));
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 public static void UnsubscribeBang(string name)
 {
     LibPD.Unsubscribe(name);
 }
Esempio n. 6
0
 public static void UnsubscribeFloat(string name)
 {
     LibPD.Unsubscribe(name);
 }