Export (0) Print
Expand All

IDvdControl2::SelectDefaultAudioLanguage method

The SelectDefaultAudioLanguage method sets the default audio language.

Syntax


HRESULT SelectDefaultAudioLanguage(
  [in] LCID               Language,
  [in] DVD_AUDIO_LANG_EXT audioExtension
);

Parameters

Language [in]

Locale identifier that specifies the default language.

audioExtension [in]

DVD_AUDIO_LANG_EXT enumeration that specifies the default audio language extension.

Return value

Returns one of the following values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

The audioExtension value is invalid.

VFW_E_DVD_INVALIDDOMAIN

The DVD Navigator filter is not in the Stop domain.

 

Remarks

This method selects the default language and language extensions to use when the disc is played. For example, if Language is specified as 0x409 for English and audioExtension is specified as DVD_AUD_EXT_NotSpecified, the DVD Navigator will look for the basic audio stream in English. If audioExtension is specified as DVD_AUD_EXT_VisuallyImpaired, the DVD Navigator will first look for a special audio stream in English for people with low vision. If the default stream is not found on a disc, the DVD Navigator will select the closest match.

The following table shows the Annex J command name to which this method name corresponds, and the domains in which this method is valid.

Annex J Command Name Valid Domains
NoneDVD_DOMAIN_Stop

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdControl2 Interface

 

 

Community Additions

ADD
Show:
© 2015 Microsoft