Media Foundation Functions


MFCreateAudioRenderer Function

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 codeDescription
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.

AttributeDescription
MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_IDAudio endpoint device.
MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ROLEAudio endpoint role.
MF_AUDIO_RENDERER_ATTRIBUTE_FLAGSMiscellaneous configuration flags.
MF_AUDIO_RENDERER_ATTRIBUTE_SESSION_IDAudio policy class.

 

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderMfidl.h
LibraryMf.lib
DLLMf.dll

See Also

Media Foundation Functions
Streaming Audio Renderer

Send comments about this topic to Microsoft

Build date: 10/8/2009

Tags :


Page view tracker