Example #1
0
 /// <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;
     }
 }
Example #2
0
 /// <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;
     }
 }
Example #5
0
 /// <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);
 }
Example #6
0
 /// <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;
     }
 }