示例#1
0
 public int SendData(byte[] data, bool editor = false)
 {
     if (data == null)
     {
         return(-1);
     }
     else
     {
         return(MidiPlugin.MIDIOUT_SendData(data));
     }
 }
示例#2
0
 public int GetDeviceCount()
 {
     return(MidiPlugin.MIDIOUT_DeviceCount());
 }
示例#3
0
        public int SendMessage(byte command, byte data1, byte data2, bool editor = false)
        {
            int rawData = (int)command + ((int)data1 << 8) + ((int)data2 << 16);

            return(MidiPlugin.MIDIOUT_SendMidiMessage(rawData));
        }
示例#4
0
 public void DisconnectDevices(bool editor = false)
 {
     MidiPlugin.MIDIOUT_DisconnectDevices();
 }
示例#5
0
 public string GetDeviceName(int deviceIndex)
 {
     return(MidiPlugin.MIDIOUT_DeviceName(deviceIndex));
 }
示例#6
0
 public void DisconnectDevice(int id, bool editor = false)
 {
     MidiPlugin.MIDIOUT_DisconnectDevice(id);
 }
示例#7
0
 public int ConnectDevice(int deviceIndex, bool editor = false)
 {
     return(MidiPlugin.MIDIOUT_ConnectDevice(deviceIndex));
 }
示例#8
0
 public bool Init()
 {
     MidiPlugin.Init();
     return(true);
 }
示例#9
0
 public int PopMessage(out MidiMessage midiMessage, bool editor = false)
 {
     return(MidiPlugin.MIDIIN_PopMessage(out midiMessage));
 }
示例#10
0
        public int ConnectDevice(int deviceIndex, bool editor = false)
        {
            int result = MidiPlugin.MIDIIN_ConnectDevice(deviceIndex);

            return(result);
        }