Commit 7fb0861b authored by Emmanuel Maillard's avatar Emmanuel Maillard Committed by Alexandre Julliard

winecoreaudio: Implement MIX_GetDevCaps.

parent db6318ea
...@@ -478,6 +478,23 @@ static DWORD MIX_GetNumDevs(void) ...@@ -478,6 +478,23 @@ static DWORD MIX_GetNumDevs(void)
return numMixers; return numMixers;
} }
static DWORD MIX_GetDevCaps(WORD wDevID, LPMIXERCAPSW lpCaps, DWORD_PTR dwSize)
{
TRACE("wDevID=%d lpCaps=%p\n", wDevID, lpCaps);
if (lpCaps == NULL) {
WARN("Invalid Parameter\n");
return MMSYSERR_INVALPARAM;
}
if (wDevID >= numMixers) {
WARN("bad device ID : %d\n", wDevID);
return MMSYSERR_BADDEVICEID;
}
memcpy(lpCaps, &mixer.caps, min(dwSize, sizeof(*lpCaps)));
return MMSYSERR_NOERROR;
}
/************************************************************************** /**************************************************************************
* mxdMessage * mxdMessage
*/ */
...@@ -502,6 +519,7 @@ DWORD WINAPI CoreAudio_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser, ...@@ -502,6 +519,7 @@ DWORD WINAPI CoreAudio_mxdMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
case MXDM_GETNUMDEVS: case MXDM_GETNUMDEVS:
return MIX_GetNumDevs(); return MIX_GetNumDevs();
case MXDM_GETDEVCAPS: case MXDM_GETDEVCAPS:
return MIX_GetDevCaps(wDevID, (LPMIXERCAPSW)dwParam1, dwParam2);
case MXDM_GETLINEINFO: case MXDM_GETLINEINFO:
case MXDM_GETLINECONTROLS: case MXDM_GETLINECONTROLS:
case MXDM_GETCONTROLDETAILS: case MXDM_GETCONTROLDETAILS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment