Microsoft DirectX 8.1 (Visual Basic)

DirectSound3DBuffer8.SetMinDistance

The SetMinDistance method sets the minimum distance for the buffer, which is the distance at which the sound is at maximum volume.

Syntax

object.SetMinDistance( _
  minDistance As Single, _
  applyFlag As CONST_DS3DAPPLYFLAGS)

Parts

object

Resolves to a DirectSound3DBuffer8 object.

minDistance

Minimum distance value.

applyFlag

Value that specifies when the setting should be applied. Must be one of the constants of the CONST_DS3DAPPLYFLAGS enumeration.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.

Remarks

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).

See Also