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