Skip to content

Latest commit

 

History

History
208 lines (184 loc) · 9.37 KB

nf-msacm-acmmetrics.md

File metadata and controls

208 lines (184 loc) · 9.37 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:msacm.acmMetrics
acmMetrics function (msacm.h)
The acmMetrics function returns various metrics for the ACM or related ACM objects.
_win32_acmMetrics
acmMetrics
acmMetrics function [Windows Multimedia]
msacm/acmMetrics
multimedia.acmmetrics
multimedia\acmmetrics.htm
Multimedia
30b6dc13-b523-4c42-aa35-c86b3ebe04c3
12/05/2018
_win32_acmMetrics, acmMetrics, acmMetrics function [Windows Multimedia], msacm/acmMetrics, multimedia.acmmetrics
msacm.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Msacm32.lib
Msacm32.dll
Windows
19H1
acmMetrics
msacm/acmMetrics
c++
APIRef
kbSyntax
DllExport
Msacm32.dll
Ext-MS-Win-mm-msacm-l1-1-0.dll
acmMetrics

acmMetrics function

-description

The acmMetrics function returns various metrics for the ACM or related ACM objects.

-parameters

-param hao

Handle to the ACM object to query for the metric specified in uMetric. For some queries, this parameter can be NULL.

-param uMetric

Metric index to be returned in pMetric.

Value Meaning
ACM_METRIC_COUNT_CODECS Returned value is the number of global ACM compressor or decompressor drivers in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_CONVERTERS Returned value is the number of global ACM converter drivers in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_DISABLED Returned value is the total number of global disabled ACM drivers (of all support types) in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value. The sum of the ACM_METRIC_COUNT_DRIVERS and ACM_METRIC_COUNT_DISABLED metric indices is the total number of globally installed ACM drivers.
ACM_METRIC_COUNT_DRIVERS Returned value is the total number of enabled global ACM drivers (of all support types) in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_FILTERS Returned value is the number of global ACM filter drivers in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_HARDWARE Returned value is the number of global ACM hardware drivers in the system. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_LOCAL_CODECS Returned value is the number of local ACM compressor drivers, ACM decompressor drivers, or both for the calling task. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_LOCAL_CONVERTERS Returned value is the number of local ACM converter drivers for the calling task. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_LOCAL_DISABLED Returned value is the total number of local disabled ACM drivers, of all support types, for the calling task. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value. The sum of the ACM_METRIC_COUNT_LOCAL_DRIVERS and ACM_METRIC_COUNT_LOCAL_DISABLED metric indices is the total number of locally installed ACM drivers.
ACM_METRIC_COUNT_LOCAL_DRIVERS Returned value is the total number of enabled local ACM drivers (of all support types) for the calling task. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_COUNT_LOCAL_FILTERS Returned value is the number of local ACM filter drivers for the calling task. The hao parameter must be NULL for this metric index. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_DRIVER_PRIORITY Returned value is the current priority for the specified driver. The hao parameter must be a valid ACM driver identifier of the HACMDRIVERID data type. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_DRIVER_SUPPORT Returned value is the fdwSupport flags for the specified driver. The hao parameter must be a valid ACM driver identifier of the HACMDRIVERID data type. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_HARDWARE_WAVE_INPUT Returned value is the waveform-audio input device identifier associated with the specified driver. The hao parameter must be a valid ACM driver identifier of the HACMDRIVERID data type that supports the ACMDRIVERDETAILS_SUPPORTF_HARDWARE flag. If no waveform-audio input device is associated with the driver, MMSYSERR_NOTSUPPORTED is returned. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_HARDWARE_WAVE_OUTPUT Returned value is the waveform-audio output device identifier associated with the specified driver. The hao parameter must be a valid ACM driver identifier of the HACMDRIVERID data type that supports the ACMDRIVERDETAILS_SUPPORTF_HARDWARE flag. If no waveform-audio output device is associated with the driver, MMSYSERR_NOTSUPPORTED is returned. The pMetric parameter must point to a buffer of a size equal to a DWORD value.
ACM_METRIC_MAX_SIZE_FILTER Returned value is the size of the largest WAVEFILTER structure. If hao is NULL, the return value is the largest WAVEFILTER structure in the system. If hao identifies an open instance of an ACM driver of the HACMDRIVER data type or an ACM driver identifier of the HACMDRIVERID data type, the largest WAVEFILTER structure for that driver is returned. The pMetric parameter must point to a buffer of a size equal to a DWORD value. This metric is not allowed for an ACM stream handle of the HACMSTREAM data type.
ACM_METRIC_MAX_SIZE_FORMAT Returned value is the size of the largest WAVEFORMATEX structure. If hao is NULL, the return value is the largest WAVEFORMATEX structure in the system. If hao identifies an open instance of an ACM driver of the HACMDRIVER data type or an ACM driver identifier of the HACMDRIVERID data type, the largest WAVEFORMATEX structure for that driver is returned. The pMetric parameter must point to a buffer of a size equal to a DWORD value. This metric is not allowed for an ACM stream handle of the HACMSTREAM data type.

-param pMetric

Pointer to the buffer to receive the metric details. The exact definition depends on the uMetric index.

-returns

Returns zero if successful or an error otherwise. Possible error values include the following.

Return code Description
ACMERR_NOTPOSSIBLE
The index specified in uMetric cannot be returned for the specified hao.
MMSYSERR_INVALHANDLE
The specified handle is invalid.
MMSYSERR_INVALPARAM
At least one parameter is invalid.
MMSYSERR_NOTSUPPORTED
The index specified in uMetric is not supported.

-see-also

Audio Compression Functions

Audio Compression Manager