Microsoft DirectX 8.1 (C++)

MSVidCtl.AudioRendererActive

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The Active property sets or retrieves the currently active audio renderer.

Syntax

objMSVidCtl.AudioRendererActive As MSVidAudioRenderer

Parameters

This property takes no parameters.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns an MSVidAudioRenderer object, or Nothing.

Remarks

This property is read/write. It is set automatically when the Video Control builds the filter graph.

Example Code

Dim objAudioRenderer As MSVidAudioRenderer
Set objAudioRenderer = VideoControl1.AudioRendererActive
If (Not objAudioRenderer Is Nothing) Then
    VolumeLabel.Caption = Str(objAudioRenderer.Volume)
End If

See Also