Microsoft DirectX 8.1 (Visual Basic) |
The GetRolloffFactor method retrieves the rolloff factor, which controls the rate of attenuation over distance.
Syntax
object.GetRolloffFactor() As Single
Parts
object
Resolves to a DirectSound3DListener8 object.
Return Values
Returns the rolloff factor.
Error Codes
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
Remarks
The rolloff factor has a range of DS3D_MINROLLOFFFACTOR (no rolloff) to DS3D_MAXROLLOFFFACTOR (10 times the rolloff found in the real world). The default value is DS3D_DEFAULTROLLOFFFACTOR (1.0).
See Also