示例#1
0
 private static MIDIInputDevice CreateInputDevice(int deviceID, ITranslationMap translationMap = null)
 {
     var device = new MIDIInputDevice(deviceID, translationMap);
     DevicesInUse.Add(device);
     return device;
 }
示例#2
0
 public static void RemoveDevice(MIDIInputDevice inputDevice)
 {
     DevicesInUse.Remove(inputDevice);
     inputDevice.Dispose();
 }