Exemple #1
0
 public bool Close()
 {
     if (this._device == IntPtr.Zero)
     {
         return(true);
     }
     Midi.MIDI_OutReset(this._device);
     this._lastError = Midi.MIDI_OutClose(this._device);
     if (this._lastError == MIDIError.MIDI_OK)
     {
         this._device = IntPtr.Zero;
     }
     return(this._device == IntPtr.Zero);
 }