Microsoft DirectX 8.0 (Visual Basic) |
Retrieves the current maximum distance for this sound buffer, which is the distance beyond which the volume is no longer attenuated.
object.GetMaxDistance() As Single
Returns the current maximum distance setting.
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
The default maximum distance, defined as DS3D_DEFAULTMAXDISTANCE, is effectively infinite.
DirectSound3DBuffer8.GetMinDistance, DirectSound3DBuffer8.SetMaxDistance, Minimum and Maximum Distances