Share via


IDvdControl2::SelectDefaultAudioLanguage

 
Microsoft DirectShow 9.0

IDvdControl2::SelectDefaultAudioLanguage

The SelectDefaultAudioLanguage method sets the default audio language.

Syntax

  HRESULT SelectDefaultAudioLanguage(
  LCID Language,
  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 Values

Returns one of the following values.

Return code Description
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
None DVD_DOMAIN_Stop

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also