Microsoft DirectX 9.0

MSVidWebDVD.DefaultAudioLanguage Property

This topic applies to Windows XP Service Pack 1 only.

The DefaultAudioLanguage property retrieves the default audio language.

Syntax

VidWebDVD.DefaultAudioLanguage As Long

Parameters

This property takes no parameters.

Return Values

Returns a Long LCID value containing the primary language ID for the default audio language. See Working with LCIDs for a table of some possible values and sample code showing how to extract the primary language ID from an LCID.

Error Codes

If the property fails, Err.Number may be set to one of the following values.

Value Description
E_UNEXPECTED Unspecified error.
VFW_E_DVD_INVALIDDOMAIN You attempted to take the value in a domain that does not support this property.

Remarks

This property is read-only. To set this property, use the VidWebDVDAdm object's DefaultAudioLCID property. The default value is -1.

Example

' Returning the property.
lLanguage = VidWebDVD.DefaultAudioLanguage

See Also