public override Task OpenAsync()
 {
     Connection = MidiPortConnectionState.Pending;
     impl       = MidiDeviceManager.OpenOutput(((RtMidiPortDetails)Details).RawId);
     Connection = MidiPortConnectionState.Open;
     return(completed_task);
 }
        public static RtMidiOutputDevice OpenOutput(int deviceID)
        {
            var dev = new RtMidiOutputDevice();

            dev.OpenPort(deviceID - manager_input.PortCount, GetDeviceInfo(deviceID).Name);
            return(dev);
        }
 public override Task OpenAsync()
 {
     Connection = MidiPortConnectionState.Pending;
     impl = MidiDeviceManager.OpenOutput (((RtMidiPortDetails) Details).RawId);
     Connection = MidiPortConnectionState.Open;
     return completed_task;
 }
Exemple #4
0
 public RtMidiPlayer(RtMidiOutputDevice output, MidiMusic music)
     : base(music)
 {
     this.output    = output;
     EventReceived += delegate(MidiEvent e) { SendMidiEvent(e); };
 }
 public static RtMidiOutputDevice OpenOutput(int deviceID)
 {
     var dev = new RtMidiOutputDevice ();
     dev.OpenPort (deviceID - manager_input.PortCount, GetDeviceInfo (deviceID).Name);
     return dev;
 }