Share via


MSVidWebDVD.CurrentAudioStream Property

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

The CurrentAudioStream property sets and retrieves the number of the enabled audio stream.

VidWebDVD.CurrentAudioStream As Long

Parameters

This property takes no parameters.

Return Value

Returns a Long value from 0 through 7 indicating the current audio stream.

Error Codes

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

Value Description
VFW_E_DVD_INVALIDDOMAIN You attempted to take the value in a domain that does not support this property.
VFW_E_DVD_OPERATION_INHIBITED This user operation is not allowed by the DVD content at this time.
E_UNEXPECTED Unspecified error.
VFW_E_DVD_STREAM_DISABLED The specified stream is disabled.

 

Valid Domains

The following table shows the Annex J command name to which this method name corresponds, and the domains in which this method is valid.

Annex J Command Name Valid Domains
Audio_Stream_Change DVD_DOMAIN_VideoManagerMenu

DVD_DOMAIN_VideoTitleSetMenu

DVD_DOMAIN_Title

DVD_DOMAIN_Stop

 

Remarks

This property is read/write and defaults to 0 (zero). Before attempting to set a new audio stream, call IsAudioStreamEnabled to verify that the stream is available.

Examples

' Setting the property.
VidWebDVD.CurrentAudioStream = Long
' Returning the property.
Long = VidWebDVD.CurrentAudioStream

Requirements

Type Library

MS Video Control 1.0 Type Library and Microsoft Tuner 1.0 Type Library

DLL

Quartz.dll

See Also

Audio Streams: Controlling Spoken Language

MSVidWebDVD Object

 

 

Send comments about this topic to Microsoft

Build date: 7/6/2010