Platform SDK: DirectX |
The DirectSound3DBuffer.SetMinDistance method sets the minimum distance for the buffer, which is the distance at which the sound is at maximum volume.
object.SetMinDistance(minDistance As Single, _ applyFlag As CONST_DS3DAPPLYFLAGS)
If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.
By default, the minimum distance value is DS3D_DEFAULTMINDISTANCE, defined as 1.0 (corresponding to 1.0 meter at the default distance factor of 1.0 meters per unit).