Creates the audio renderer.
Syntax
HRESULT MFCreateAudioRenderer(
__in IMFAttributes *pAudioAttributes,
__out IMFMediaSink **ppSink
);
Parameters
- pAudioAttributes [in]
-
Optional pointer to the IMFAttributes interface, which is used to configure the audio renderer. This parameter can be NULL. See Remarks.
- ppSink [out]
-
Receives a pointer to the audio renderer's IMFMediaSink interface. The caller must release the interface.
Return Value
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
- S_OK
| The method succeeded.
|
- E_POINTER
| The ppSink parameter is NULL.
|
Remarks
To configure the audio renderer, set any of the following attributes on the IMFAttributes interface specified in the pAudioAttributes parameter.
Requirements
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | Mfidl.h |
| Library | Mf.lib |
| DLL | Mf.dll |
See Also
- Media Foundation Functions
- Streaming Audio Renderer
Send comments about this topic to Microsoft
Build date: 10/8/2009