Audio.Volume Property |
Language: |
Retrieves and sets the amount to attenuate the volume of audio playback.
Visual Basic Public Property Volume As Integer C# public int Volume { get; set; } C++ public:
property int Volume {
int get();
void set(int value);
}JScript public function get Volume() : int
public function set Volume(int);
System.Int32
This property is read/write.
The amount to attenuate the audio playback volume.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center