mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msacm32: Implement ACM_METRIC_DRIVER_PRIORITY in acmMetrics.
This commit is contained in:
parent
6501d7b155
commit
63413b7480
@ -221,11 +221,24 @@ MMRESULT WINAPI acmMetrics(HACMOBJ hao, UINT uMetric, LPVOID pMetric)
|
||||
FIXME("ACM_METRIC_COUNT_HARDWARE not implemented\n");
|
||||
break;
|
||||
|
||||
case ACM_METRIC_DRIVER_PRIORITY:
|
||||
/* Return current list position of driver */
|
||||
if (!hao) return MMSYSERR_INVALHANDLE;
|
||||
if (!pMetric) return MMSYSERR_INVALPARAM;
|
||||
mmr = MMSYSERR_INVALHANDLE;
|
||||
for (i = 1, padid = MSACM_pFirstACMDriverID; padid; i++, padid = padid->pNextACMDriverID) {
|
||||
if (padid == (PWINE_ACMDRIVERID)hao) {
|
||||
*(LPDWORD)pMetric = i;
|
||||
mmr = MMSYSERR_NOERROR;
|
||||
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:
|
||||
case ACM_METRIC_DRIVER_PRIORITY:
|
||||
default:
|
||||
FIXME("(%p, %d, %p): stub\n", hao, uMetric, pMetric);
|
||||
mmr = MMSYSERR_NOTSUPPORTED;
|
||||
|
Loading…
Reference in New Issue
Block a user