Skip to content

Latest commit

 

History

History
101 lines (78 loc) · 2.69 KB

nf-mfapi-mfinitmediatypefromwaveformatex.md

File metadata and controls

101 lines (78 loc) · 2.69 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:mfapi.MFInitMediaTypeFromWaveFormatEx
MFInitMediaTypeFromWaveFormatEx function (mfapi.h)
Initializes a media type from a WAVEFORMATEX structure.
91a201a6-06cf-4445-ad62-fdabb3848d51
MFInitMediaTypeFromWaveFormatEx
MFInitMediaTypeFromWaveFormatEx function [Media Foundation]
mf.mfinitmediatypefromwaveformatex
mfapi/MFInitMediaTypeFromWaveFormatEx
mf\mfinitmediatypefromwaveformatex.htm
mf
91a201a6-06cf-4445-ad62-fdabb3848d51
12/05/2018
91a201a6-06cf-4445-ad62-fdabb3848d51, MFInitMediaTypeFromWaveFormatEx, MFInitMediaTypeFromWaveFormatEx function [Media Foundation], mf.mfinitmediatypefromwaveformatex, mfapi/MFInitMediaTypeFromWaveFormatEx
mfapi.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfplat.lib
Mfplat.dll
Windows
19H1
MFInitMediaTypeFromWaveFormatEx
mfapi/MFInitMediaTypeFromWaveFormatEx
c++
APIRef
kbSyntax
DllExport
mfplat.dll
MFInitMediaTypeFromWaveFormatEx

MFInitMediaTypeFromWaveFormatEx function

-description

Initializes a media type from a WAVEFORMATEX structure.

-parameters

-param pMFType

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

-param pWaveFormat

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

-param cbBufSize

Size of the WAVEFORMATEX structure, in bytes.

-returns

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The function succeeded.

-see-also

Media Foundation Functions

Media Type Conversions

Media Types