vMix Forums
»
General
»
General Discussion
»
MIDI hot plug in Windows 10
Rank: Newbie
Groups: Registered
Joined: 4/19/2016(UTC) Posts: 1 Location: beijing
|
Hi,admin MIDI can hot plug in Windows 10? https://blogs.windows.co...ancements-in-windows-10/The API plugs in nicely with the device enumeration and watcher APIs in UWP, making it easy to detect hot plug/unplug of devices while your app is running. Here’s a simple way to get a list of MIDI devices and their IDs, using C#: using Windows.Devices.Midi; using Windows.Devices.Enumeration; ... private async void ListMidiDevices() { // Enumerate Input devices var deviceList = await DeviceInformation.FindAllAsync( MidiInPort.GetDeviceSelector()); foreach (var deviceInfo in deviceList) { System.Diagnostics.Debug.WriteLine(deviceInfo.Id); System.Diagnostics.Debug.WriteLine(deviceInfo.Name); System.Diagnostics.Debug.WriteLine("----------"); } // Output devices are enumerated the same way, but // using MidiOutPort.GetDeviceSelector() }
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
MIDI hot plug in Windows 10
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close