MSVidWebDVD.IsAudioStreamEnabled Method
Microsoft DirectShow 9.0 |
MSVidWebDVD.IsAudioStreamEnabled Method
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.
Syntax
VidWebDVD .IsAudioStreamEnabled( lStream As Long ) As Boolean
Parameters
lStream
Specifies the audio stream as a Long value.
Return Values
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
Example
bAudioEnabled = VidWebDVD.IsAudioStreamEnabled(lStream)
Requirements
Reference: Add a reference to MS Video Control 1.0 Type Library and Microsoft Tuner 1.0 Type Library.
Library: Quartz.dll.
See Also