Platform SDK: DirectX |
The DirectSound3DBuffer.SetMaxDistance method 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.
DirectSound3DBuffer.GetMaxDistance, DirectSound3DBuffer.SetMinDistance