Microsoft DirectX 8.1 (Visual Basic)

DirectSound3DListener8.GetDistanceFactor

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

Syntax

object.GetDistanceFactor() As Single

Parts

object

Resolves to a DirectSound3DListener8 object.

Return Values

Returns the distance factor.

Error Codes

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

See Also