msacm: Add support for ACM_METRIC_DRIVER_SUPPORT.

This commit is contained in:
Alex Villacís Lasso 2006-01-17 15:59:02 +01:00 committed by Alexandre Julliard
parent db7a3a352e
commit 9a577e5e41
1 changed files with 17 additions and 1 deletions

View File

@ -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;