public async Task GetAllOutputDevicesAsync()
        {
            IEnumerable <IMidiOutputDevice> devices = await MidiDeviceLocator.GetAllOutputDevicesAsync();

            Assert.IsTrue(devices.Any());
            foreach (IMidiOutputDevice device in devices)
            {
                Assert.IsFalse(string.IsNullOrWhiteSpace(device.DeviceId));
                Assert.IsFalse(string.IsNullOrWhiteSpace(device.Name));
            }
        }
Esempio n. 2
0
        private async void AmpControl_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            var devices = await MidiDeviceLocator.GetAllOutputDevicesAsync();

            this.ViewModel.SetDevices(devices);
        }