![]() |
![]() |
![]() |
Listener3D.RolloffFactor Property |
Language: |
Retrieves and sets the rolloff factor, which determines the rate of attenuation over distance.
Visual Basic Public Property RolloffFactor As Single C# public float RolloffFactor { get; set; } C++ public:
property float RolloffFactor {
float get();
void set(float value);
}JScript public function get RolloffFactor() : float
public function set RolloffFactor(float);
System.Single
This property is read/write.
The rolloff factor, which determines the rate of attenuation over distance.
The rolloff factor has a range of 0.0 (no rolloff) to 10.0 (ten times the rolloff found in the real world). The default value is 1.0.
The rolloff factor is global. To change the effect of distance for an individual sound buffer, you can set the minimum distance for the buffer.
Exceptions
ArgumentException An invalid parameter was passed to the called method.
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