Exemplo n.º 1
0
        public static void closePatch()
        {
            LibPD.Release();

            while (loader.FreeLibrary(SDllHandle))
            {
            }
        }
Exemplo n.º 2
0
    // Close patch and release Pd on quit
    void OnApplicationQuit()
    {
        // Unsubscribe Pd print object.
        LibPD.Print -= ReceivePrint;

        closePatch(SPatch);
        LibPD.Release();
        islibpdready = false;
    }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    // TODO: dispose managed state (managed objects).
                }
                LibPD.ClosePatch(patchSystemId);
                LibPD.Release();

                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.

                disposedValue = true;
            }
        }
Exemplo n.º 5
0
 void StopLibPD()
 {
     initialized = false;
     LibPD.Release();
 }
Exemplo n.º 6
0
 public void closePatch()
 {
     //LibPD.Print -= Receive;
     LibPD.ClosePatch(SPatch);
     LibPD.Release();
 }
Exemplo n.º 7
0
 // Close patch and release Pd on quit
 void OnDestroy()
 {
     LibPD.ClosePatch(patchHandle);
     LibPD.Release();
 }