Skip to content

[BUG]: WinMM app cannot detect MIDI devices attached after the app has launched. #783

@m-komo

Description

@m-komo

Windows Version

Build 27959.br_release.250926-1432

Service Installation Method

GitHub

SDK version, if appropriate

1.0.13-preview.13.192

Location

Application using WinMM MIDI 1.0 (Classic API)

Type of bug

Application not working as expected

Steps to reproduce

  1. Ensure no MIDI input devices are connected.
  2. Open a command console and launch the attached MMEGetNumDevs.exe.
    The app enumerates available MIDI input devices. It shows "No input devices found." at this time.
  3. Attach any MIDI device to the PC running MidiSrv.
  4. In the same command console where MMEGetNmDevs.exe is running, press the Enter key to enumerate devices again.
    The app still shows "No input devices found." The device attached in step 3 should be enumerated.
  5. Open a second command console and launch MMEGetNumDevs.exe.
    This instance correctly shows the MIDI input device attached in step 3.
  6. Detach the MIDI device and press Enter in the second console to re-enemerate devices.
    The app still shows the disconnected device. It should no longer be enumerated.

It seems that WinMM caches available devices at applicaton launch and does not update it dynamically.
On Windows 11 without MidiSrv, the same steps result in correct and updated device enumeration.

MMEGetNumDevs.zip

Expected behavior

The application should reflect changes in MIDI device availability without needing to restart.

Additional notes

No response

Metadata

Metadata

Labels

area-winmmwmdaud2.drv or other WinMM issuebug 🐞Something isn't workingfixed-awaiting-public-release 🕙Fixed in our internal builds. Waiting to make its way to a public release.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions