JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: MidiInput::getAvailableDevices() returns empty list when using WinRT MIDI API

Open FangCunWuChang opened this issue 2 years ago • 0 comments
trafficstars

Detailed steps on how to reproduce the bug

  1. I set JUCE_USE_WINRT_MIDI macro on.
  2. I use MidiInput::getAvailableDevices() and MidiOutput::getAvailableDevices() to get midi device list.
  3. They returns empty list.
  4. I set JUCE_USE_WINRT_MIDI macro off.
  5. These methods returns the right device list.

What is the expected behaviour?

MidiInput::getAvailableDevices() and MidiOutput::getAvailableDevices() returns empty list when using WinRT MIDI API. But they can return the right device list when using Win32 API. My JUCE version is 7.0.5 (commit 793df5dd3d4368bc121c960b89b922e2ccae4fe2) My Windows SDK version is 10.0.22621.0

Operating systems

Windows

What versions of the operating systems?

Microsoft Windows [Version 10.0.22621.1105]

Architectures

x86_64

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

FangCunWuChang avatar Feb 09 '23 16:02 FangCunWuChang