Microsoft DirectX 8.0 (C++)

IDirectSound3DListener8::GetDistanceFactor

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.

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.

See Also

IDirectSound3DListener8::SetDistanceFactor, Distance Factor