Share via


MSVidWebDVD.IsAudioStreamEnabled Method

Note  This topic applies to Windows XP Service Pack 1 or later.

The IsAudioStreamEnabled method returns a value indicating whether the specified audio stream is enabled in the current title.

VidWebDVD.IsAudioStreamEnabled(
   lStream As Long
) As Boolean

Parameters

  • lStream
    Specifies the audio stream as a Long value.

Return Value

This method returns a Boolean value indicating whether the specified audio stream is available for the current title. True means it is available.

Error Codes

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

Value Description
E_UNEXPECTED Unspecified error.
E_INVALIDARG lStream is less than 0 or greater than (number of streams - 1).

Remarks

Although a disc can contain up to eight independent audio streams, each stream is not necessarily available for each title. For example, a main movie title might have three audio streams for English, Spanish, and Japanese, but the "Coming Attractions" title might have only one audio stream in English. Always verify that a stream is available for a title before setting the CurrentAudioStream property

Examples

bAudioEnabled = VidWebDVD.IsAudioStreamEnabled(lStream)

Requirements

Type Library Use MS Video Control 1.0 Type Library and Microsoft Tuner 1.0 Type Library.
DLL Requires Quartz.dll.

See Also

Audio Streams: Controlling Spoken Language
MSVidWebDVD Object

Send comments about this topic to Microsoft

Build date: 12/4/2008