mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
msacm: Add support for ACM_METRIC_DRIVER_SUPPORT.
This commit is contained in:
parent
db7a3a352e
commit
9a577e5e41
1 changed files with 17 additions and 1 deletions
|
@ -235,10 +235,26 @@ MMRESULT WINAPI acmMetrics(HACMOBJ hao, UINT uMetric, LPVOID pMetric)
|
|||
}
|
||||
break;
|
||||
|
||||
case ACM_METRIC_DRIVER_SUPPORT:
|
||||
/* Return fdwSupport for driver */
|
||||
if (!hao) return MMSYSERR_INVALHANDLE;
|
||||
mmr = MMSYSERR_INVALHANDLE;
|
||||
for (padid = MSACM_pFirstACMDriverID; padid; padid = padid->pNextACMDriverID) {
|
||||
if (padid == (PWINE_ACMDRIVERID)hao) {
|
||||
if (pMetric) {
|
||||
*(LPDWORD)pMetric = padid->fdwSupport;
|
||||
mmr = MMSYSERR_NOERROR;
|
||||
} else {
|
||||
mmr = MMSYSERR_INVALPARAM;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case ACM_METRIC_HARDWARE_WAVE_INPUT:
|
||||
case ACM_METRIC_HARDWARE_WAVE_OUTPUT:
|
||||
case ACM_METRIC_MAX_SIZE_FILTER:
|
||||
case ACM_METRIC_DRIVER_SUPPORT:
|
||||
default:
|
||||
FIXME("(%p, %d, %p): stub\n", hao, uMetric, pMetric);
|
||||
mmr = MMSYSERR_NOTSUPPORTED;
|
||||
|
|
Loading…
Reference in a new issue