Microsoft DirectX 9.0

MSVidWebDVD.AudioStreamsAvailable Property

This topic applies to Windows XP Service Pack 1 only.

The AudioStreamsAvailable property retrieves the number of audio streams available in the current title.

Syntax

VidWebDVD.AudioStreamsAvailable as Long

Parameters

This property takes no parameters.

Return Values

Returns an integer value from 1 through 8 representing the number of audio streams available in the current title.

Error Codes

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

Value Description
E_UNEXPECTED Unspecified error.
E_NO_IDVD2_PRESENT Unspecified internal error.
E_NO_DVD_VOLUME No DVD available.
E_REGION_CHANGE_FAIL The DVD has the wrong region code for this machine.

Remarks

This property is read-only with no default value. The primary use of multiple audio streams is to provide movie soundtracks in more than one language. Typically, not every title on a disc has all audio streams enabled. For example, the feature movie might have soundtracks in three different languages, but the trailers might have only an English soundtrack. Before a user can select a stream, the application must determine which streams are available within the current title. Note that particular streams are identified by an index from 0 through 7.

Discs generally present a menu showing the available soundtracks, which allows the user to select the audio stream to enable.

Example

' Returning the property
lStreamsAvail = VidWebDVD.AudioStreamsAvailable

See Also