IAMAudioRendererStats::GetStatParam method (strmif.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetStatParam
method retrieves performance information from the audio renderer.
Syntax
HRESULT GetStatParam(
[in] DWORD dwParam,
[out] DWORD *pdwParam1,
[out] DWORD *pdwParam2
);
Parameters
[in] dwParam
Specifies a member of the _AM_AUDIO_RENDERER_STAT_PARAM enumeration, indicating which information to retrieve.
[out] pdwParam1
Pointer to a variable that receives performance information. The meaning of the returned value depends on the value of dwParam.
[out] pdwParam2
Pointer to a variable that receives performance information. The meaning of the returned value depends on the value of dwParam.
Return value
Returns an HRESULT value. Possible values include the following.
Return code | Description |
---|---|
|
Failure. |
|
Invalid argument. |
|
The renderer does not track the specified information. |
|
NULL pointer argument. |
|
Success. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |