logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jiangjinqiang  
#1 Posted : Thursday, December 7, 2017 10:58:46 PM(UTC)
jiangjinqiang

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()
}
Users browsing this topic
Guest (2)
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.