IWMEncProfile2::AddLanguage

Windows Media Encoder SDK banner art

The AddLanguage method adds a language to the profile.

Syntax

HRESULT AddLanguage(
  WMENC_SOURCE_TYPE  enumSrcType,
  short  iRenderSite,
  long  lcidLanguage
);

Parameters

enumSrcType

[in]  Specifies a member of the WMENC_SOURCE_TYPE enumeration type.

iRenderSite

[in]  short containing the audience stream index. Because an audience can contain only one stream of each type, iRenderSiteIndex must be 0.

lcidLanguage

[in]  long specifying the locale ID, which is a 32-bit value that consists of a language ID, sort ID, and reserved bits that identify a particular language. For example, the LCID for English is 1033, and the LCID for Japanese is 1041.

Return Values

If the method succeeds, it returns S_OK. If it fails, it supports the IErrorInfo interface and returns an HRESULT error code.

Requirements

Header: wmencode.h

Library: wmenc.exe

See Also