Microsoft DirectX 9.0 SDK Update (October 2004)

Audio.Volume Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves and sets the amount to attenuate the volume of audio playback.

Definition

Visual Basic .NET Public Property Volume As Integer
C# public int Volume { get; set; }
Managed C++ public: __property int get_Volume();
public: __property void set_Volume(int);
JScript .NET public function get Volume() : int
public function set Volume(int);

Property Value

System.Int32 . The amount to attenuate the audio playback volume.

This property is read/write. 

Remarks

When this property is set to 0, playback will be at maximum volume.

When this property is set to -10000, playback will be effectively silent.

Exceptions
DirectXException For more information on the cause of this exception, reference the DirectXException.ErrorCode and DirectXException.ErrorString properties to the AudioVideoPlayback error code table.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center