Microsoft DirectX 8.1 (Visual Basic) |
The GetMaxDistance method retrieves the current maximum distance for this sound buffer, which is the distance beyond which the volume is no longer attenuated.
Syntax
object.GetMaxDistance() As Single
Parts
object
Resolves to a DirectSound3DBuffer8 object.
Return Values
Returns the current maximum distance setting.
Error Codes
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
Remarks
The default maximum distance, defined as DS3D_DEFAULTMAXDISTANCE, is effectively infinite.
See Also