IDvdControl2::SelectDefaultAudioLanguage method (strmif.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The SelectDefaultAudioLanguage
method sets the default audio language.
Syntax
HRESULT SelectDefaultAudioLanguage(
[in] LCID Language,
[in] DVD_AUDIO_LANG_EXT audioExtension
);
Parameters
[in] Language
Locale identifier that specifies the default language.
[in] audioExtension
DVD_AUDIO_LANG_EXT enumeration that specifies the default audio language extension.
Return value
Returns one of the following values.
Return code | Description |
---|---|
|
Success. |
|
The audioExtension value is invalid. |
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |