public static void closePatch() { LibPD.Release(); while (loader.FreeLibrary(SDllHandle)) { } }
// Close patch and release Pd on quit void OnApplicationQuit() { // Unsubscribe Pd print object. LibPD.Print -= ReceivePrint; closePatch(SPatch); LibPD.Release(); islibpdready = false; }
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(); }
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; } }
void StopLibPD() { initialized = false; LibPD.Release(); }
public void closePatch() { //LibPD.Print -= Receive; LibPD.ClosePatch(SPatch); LibPD.Release(); }
// Close patch and release Pd on quit void OnDestroy() { LibPD.ClosePatch(patchHandle); LibPD.Release(); }