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