/// <summary>Closes the MIDI device without regard for the reference count.</summary> private static void InternalCloseMidi() { // Close the MIDI device if it is open if (_handle != null) { ((IDisposable)_handle).Dispose(); _handle = null; } }
/// <summary>Opens the MIDI device without regard for whether it has already been opened.</summary> private static void InternalOpenMidi(int deviceID) { // Open the default MIDI device _handle = MidiInterop.OpenMidiOut(deviceID); }
private static void InternalOpenMidi() { _handle = MidiInterop.OpenMidiOut(); }
private static void InternalCloseMidi() { if (_handle != null) { ((IDisposable) _handle).Dispose(); _handle = null; } }