|Microsoft DirectX 9.0|
This topic applies to Windows XP Service Pack 1 only.
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
Specifies the audio stream as a Long value.
This method returns a Boolean value indicating whether the specified audio stream is available for the current title. True means it is available.
If the property fails, Err.Number may be set to one of the following values.
|E_INVALIDARG||lStream is less than 0 or greater than (number of streams - 1).|
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
bAudioEnabled = VidWebDVD.IsAudioStreamEnabled(lStream)