Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFCreateAC3MediaSink
Collapse the table of content
Expand the table of content

MFCreateAC3MediaSink function

Creates an instance of the AC-3 media sink.

Syntax


HRESULT MFCreateAC3MediaSink(
  _In_  IMFByteStream *pTargetByteStream,
  _In_  IMFMediaType  *pAudioMediaType,
  _Out_ IMFMediaSink  **ppMediaSink
);

Parameters

pTargetByteStream [in]

A pointer to the IMFByteStream interface of a byte stream. The media sink writes the AC-3 file to this byte stream. The byte stream must be writable.

pAudioMediaType [in]

A pointer to the IMFMediaType interface. This parameter specifies the media type for the AC-3 audio stream. The media type must contain the following attributes.

AttributeValue
MF_MT_MAJOR_TYPE MFMediaType_Audio
MF_MT_SUBTYPE MFAudioFormat_Dolby_AC3 or MFAudioFormat_Dolby_DDPlus

 

ppMediaSink [out]

Receives a pointer to the 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

The AC-3 media sink takes compressed AC-3 audio as input and writes the audio to the byte stream without modification. The primary use for this media sink is to stream AC-3 audio over a network. The media sink does not perform AC-3 audio encoding.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfidl.h

DLL

Mf.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft