Ejemplo n.º 1
0
 public bool Start()
 {
     if (this._disposing)
     {
         return(false);
     }
     if (this._started)
     {
         return(true);
     }
     this.AddSysExBuffer();
     this.AddSysExBuffer();
     this._lastError = Midi.MIDI_InStart(this._device);
     if (this._lastError == MIDIError.MIDI_OK)
     {
         this._started = true;
         this.RaiseMessageReceived(MidiMessageEventType.Started, null);
     }
     else
     {
         Midi.MIDI_InReset(this._device);
     }
     return(this._started);
 }