http://bugs.winehq.org/show_bug.cgi?id=31924
Bug #: 31924 Summary: mixerGetDevCaps does not support mixer device handles Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: nicode@gmx.net Classification: Unclassified
The Windows SDK documentation states: "This function also accepts a mixer device handle returned by the mixerOpen function as the uMxId parameter. The application should cast the HMIXER handle to a UINT."
This feature is missing in the mixerGetDevCaps(W) implementation.
It might be fixed by using mixerGetID((HMIXEROBJ)uDeviceID, &uMixerId, MIXER_OBJECTF_HMIXER) to resolve the handle to an identifier if uDeviceID is greater than or equal to mixerGetNumDevs().