Microsoft DirectX 9.0


This topic applies to Windows XP only.

The Volume property sets or retrieves the audio renderer's volume level.


objMSVidAudioRenderer.Volume As Long


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 a number from -10,000 to 0, inclusive.


Full volume is 0 and silence is –10,000. Divide by 100 to get the equivalent decibel value; for example, –10,000 is –100 dB.

This property is read/write.

See Also