Export (0) Print
Expand All
Expand Minimize

MFCreateWMAEncoderActivate function

Creates an activation object that can be used to create a Windows Media Audio (WMA) encoder.

Syntax


HRESULT MFCreateWMAEncoderActivate(
  IMFMediaType *pMediaType,
  IPropertyStore *pEncodingConfigurationProperties,
  IMFActivate **ppActivate
);

Parameters

pMediaType

A pointer to the IMFMediaType interface. This parameter specifies the encoded output format.

pEncodingConfigurationProperties

A pointer to the IPropertyStore interface of a property store that contains encoding parameters. Encoding parameters for the WMV encoder are defined in the header file wmcodecdsp.h. If you have an ASF ContentInfo object that contains an ASF profile object with all the streams for the output file, you can get the property store by calling IMFASFContentInfo::GetEncodingConfigurationPropertyStore.

ppActivate

Receives a pointer to the IMFActivate interface. Use this interface to create the encoder. The caller must release the interface.

Return value

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

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

Library

Mf.lib

DLL

Mf.dll

See also

Media Foundation Functions
Activation Objects

 

 

Community Additions

ADD
Show:
© 2014 Microsoft