Microsoft DirectX 8.0 (Visual Basic)

DirectSound3DListener8.SetDistanceFactor

Sets the distance factor, which is the number of meters in a vector unit.

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

DirectSound3DListener8.GetDistanceFactor, Distance Factor