Microsoft DirectX 8.0 (Visual Basic) |
Sets the maximum distance for the buffer, which is the distance beyond which the sound is no longer attenuated.
object.SetMaxDistance( _ maxDistance As Single, _ applyFlag As CONST_DS3DAPPLYFLAGS)
If the method fails, an error is raised and Err.Number may be DSERR_INVALIDPARAM.
The default maximum distance, defined as DS3D_DEFAULTMAXDISTANCE, is effectively infinite.
DirectSound3DBuffer8.GetMaxDistance, DirectSound3DBuffer8.SetMinDistance, Minimum and Maximum Distances