예제 #1
0
 public override Task OpenAsync()
 {
     Connection = MidiPortConnectionState.Pending;
     impl       = PortMidiDeviceManager.OpenOutput(((PortMidiPortDetails)Details).RawId);
     Connection = MidiPortConnectionState.Open;
     return(completed_task);
 }
예제 #2
0
 public PortMidiPlayer(PortMidiOutputStream output, MidiMusic music)
     : base(music)
 {
     this.output    = output;
     EventReceived += delegate(Midi.MidiEvent m) { SendMidiMessage(m); };
 }