IDirectSound3DListener8::GetDistanceFactor

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

HRESULT GetDistanceFactor(
  D3DVALUE * pflDistanceFactor
);

Parameters

pflDistanceFactor
Address of a variable that receives the distance factor value. D3DVALUE is defined as float.

Return Values

If the method succeeds, the return value is DS_OK. If the method fails, the return value may be DSERR_INVALIDPARAM.

Requirements

Header: Declared in Dsound.h.

Import Library: Use Dsound3d.dll.

See Also

IDirectSound3DListener8