Click to Rate and Give Feedback
MSDN
MSDN Library
Audio and Video
 MFCreateAudioRenderer Function

  Switch on low bandwidth view
MFCreateAudioRenderer Function

Creates the audio renderer.

Syntax

C++
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: 6/23/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker