protected virtual void Dispose(bool disposing) { if (!this.disposed) { MidiInterop.midiOutClose(this.hMidiOut); } this.disposed = true; }
/// <summary> /// Closes the MIDI out device /// </summary> /// <param name="disposing">True if called from Dispose</param> protected virtual void Dispose(bool disposing) { if (!disposed) { //if(disposing) Components.Dispose(); MidiInterop.midiOutClose(hMidiOut); } disposed = true; }