MFCreateWAVEMediaSink function

Creates an WAVE archive sink. The WAVE archive sink takes audio and writes it to an .wav file.

Syntax

HRESULT MFCreateWAVEMediaSink(
  IMFByteStream *pTargetByteStream,
  IMFMediaType  *pAudioMediaType,
  IMFMediaSink  **ppMediaSink
);

Parameters

pTargetByteStream

Pointer to the byte stream that will be used to write the .wav file.

pAudioMediaType

Pointer to the audio media type.

ppMediaSink

Receives a pointer to the IMFMediaSink interface. The caller must release this interface.

Return Value

None

Requirements

   
Windows version Windows 8.1 [desktop apps only] Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mf.lib
DLL Mf.dll

See Also

Media Foundation Functions