Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFCreateAudioRenderer function

Creates the Streaming Audio Renderer.

Syntax


HRESULT MFCreateAudioRenderer(
  _In_   IMFAttributes *pAudioAttributes,
  _Out_  IMFMediaSink **ppSink
);

Parameters

pAudioAttributes [in]

A 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

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

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_ID The audio endpoint device identifier.
MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ROLE The audio endpoint role.
MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS Miscellaneous configuration flags.
MF_AUDIO_RENDERER_ATTRIBUTE_SESSION_ID The audio policy class.
MF_AUDIO_RENDERER_ATTRIBUTE_STREAM_CATEGORY The audio stream category.
MF_LOW_LATENCY Enables low-latency audio streaming.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfidl.h

Library

Mf.lib

DLL

Mf.dll

See also

Media Foundation Functions
Streaming Audio Renderer

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.