|
acmMetrics
The acmMetrics function returns various metrics for the ACM or related ACM objects.
MMRESULT acmMetrics(
HACMOBJ hao,
|
| UINT uMetric,
|
| LPVOID pMetric
|
| );
|
|
Parameters
hao
Handle of the ACM object to query for the metric specified in uMetric. For some queries, this parameter can be NULL.
uMetric
Metric index to be returned in pMetric.
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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword 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 doubleword value. This
metric is not allowed for an ACM stream handle of the HACMSTREAM data type.
pMetric
Address of the buffer to receive the metric details. The exact definition
depends on the uMetric index.
Return Values
Returns zero if successful or an error otherwise. Possible error values
include the following:
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
WAVEFILTER, WAVEFORMATEX
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|