Commit 9a577e5e authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

msacm: Add support for ACM_METRIC_DRIVER_SUPPORT.

parent db7a3a35
...@@ -235,10 +235,26 @@ MMRESULT WINAPI acmMetrics(HACMOBJ hao, UINT uMetric, LPVOID pMetric) ...@@ -235,10 +235,26 @@ MMRESULT WINAPI acmMetrics(HACMOBJ hao, UINT uMetric, LPVOID pMetric)
} }
break; 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_INPUT:
case ACM_METRIC_HARDWARE_WAVE_OUTPUT: case ACM_METRIC_HARDWARE_WAVE_OUTPUT:
case ACM_METRIC_MAX_SIZE_FILTER: case ACM_METRIC_MAX_SIZE_FILTER:
case ACM_METRIC_DRIVER_SUPPORT:
default: default:
FIXME("(%p, %d, %p): stub\n", hao, uMetric, pMetric); FIXME("(%p, %d, %p): stub\n", hao, uMetric, pMetric);
mmr = MMSYSERR_NOTSUPPORTED; mmr = MMSYSERR_NOTSUPPORTED;
......
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