mixerGetID (Windows CE 5.0)
This function retrieves the device identifier for a mixer device associated with a specified device handle.
MMRESULTmixerGetID(HMIXEROBJhmxobj,UINT* puMxId,DWORDfdwId);
Parameters
hmxobj
Handle to the audio mixer object to map to a mixer device identifier.puMxId
Pointer to a variable that receives the mixer device identifier.If no mixer device is available for the hmxobj object, the value – 1 is placed in this location and the MMSYSERR_NODRIVER error value is returned.
fdwId
Flags for mapping the mixer object hmxobj.The following table shows the possible flags.
Flag Description MIXER_OBJECTF_HMIXER The hmxobj parameter is a mixer device handle returned by the mixerOpen function. This flag is optional.
MIXER_OBJECTF_MIXER The hmxobj parameter is the identifier of a mixer device in the range of zero to one less than the number of devices returned by the mixerGetNumDevs function. This flag is optional.
The following flags are supported in other versions of Windows, but not in Windows CE.
Flags not supported in Windows CE MIXER_OBJECTF_AUX MIXER_OBJECTF_HMIDIN MIXER_OBJECTF_HMIDIOUT MIXER_OBJECTF_HWAVEIN MIXER_OBJECTF_HWAVEOUT MIXER_OBJECTF_MIDIIN MIXER_OBJECTF_MIDIOUT MIXER_OBJECTF_WAVEHOUT MIXER_OBJECTF_WAVEIN
Return Values
Returns MMSYSERR_NOERROR if successful or an error otherwise.
The following table shows the possible error values.
Value | Description |
---|---|
MMSYSERR_BADDEVICEID | The hmxobj parameter specifies an invalid device identifier. |
MMSYSERR_INVALFLAG | One or more flags are invalid. |
MMSYSERR_INVALHANDLE | The hmxobj parameter specifies an invalid handle. |
MMSYSERR_INVALPARAM | One or more parameters are invalid. |
MMSYSERR_NODRIVER | No audio mixer device is available for the object specified by hmxobj.
The location referenced by puMxId also contains the value –1. |
Requirements
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Mmsystem.h.
Link Library: Coredll.lib.
See Also
mixerOpen | mixerGetNumDevs | Hardware Audio Mixer Functions
Send Feedback on this topic to the authors