Microsoft DirectX 8.1 (Visual Basic)

DirectSound3DListener8.SetDistanceFactor

The SetDistanceFactor method sets the distance factor, which is the number of meters in a vector unit.

Syntax

object.SetDistanceFactor( _
  distanceFactor As Single, _
  applyFlag As CONST_DS3DAPPLYFLAGS)

Parts

object

Resolves to a DirectSound3DListener8 object.

distanceFactor

Distance factor.

applyFlag

Value that specifies when the setting should be applied. This value 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.

See Also