Пример #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();
 }