![]() |
![]() |
![]() |
Listener3DSettings.RolloffFactor Property |
Language: |
Retrieves and sets the ratio of attenuation over distance to that in the real world.
Visual Basic .NET Public Property RolloffFactor As Single C# public float RolloffFactor { get; set; } Managed C++ public: __property float get_RolloffFactor();
public: __property void set_RolloffFactor(float);JScript .NET public function get RolloffFactor() : float
public function set RolloffFactor(float);
System.Single . The ratio of attenuation over distance to that in the real world.
This property is read/write.
This property has a range of 0.0 (no rolloff) to 10.0 (10 times the rolloff found in the real world). The default value is 1.0.
Rolloff factor is global. To change the effect of distance for an individual sound buffer, you can set the minimum distance for the buffer.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center