Buffer.Volume Property |
Language: |
Retrieves or sets the attenuation of the sound.
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.
Value that represents the attenuation, in hundredths of a decibel (dB).
The return value is between Volume.Min and Volume.Max. These values are defined as 0 and -10,000, respectively. The value Volume.Max represents the original, unadjusted volume of the sound. The value Volume.Min indicates an audio volume attenuated by 100 dB, which, for practical purposes, is silence.
Exceptions
ArgumentException An invalid parameter was passed to the called method. ControlUnavailableException The buffer control (volume, pan, and so on) requested by the caller is not available. Controls must be specified when the buffer is created. PriorityLevelNeededException A cooperative level of Priority or higher is required.
SecondaryBuffer
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