Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFInitMediaTypeFromWaveFormatEx function

Initializes a media type from a WAVEFORMATEX structure.

Syntax


HRESULT MFInitMediaTypeFromWaveFormatEx(
         IMFMediaType *pMFType,
   const WAVEFORMATEX *pWaveFormat,
         UINT32       cbBufSize
);

Parameters

pMFType

Pointer to the IMFMediaType interface of the media type to initialize. To create the uninitialized media type object, call MFCreateMediaType.

pWaveFormat

Pointer to a WAVEFORMATEX structure that describes the media type. The caller must fill in the structure members before calling this function.

cbBufSize

Size of the WAVEFORMATEX structure, in bytes.

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 function succeeded.

 

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Media Type Conversions
Media Types

 

 

Show:
© 2017 Microsoft