Microsoft DirectX 8.1 (C++)

DS3DLISTENER

The DS3DLISTENER structure describes the 3-D world parameters and the position of the listener. This structure is used with the IDirectSound3DListener8::GetAllParameters and IDirectSound3DListener8::SetAllParameters methods.

Syntax

typedef struct { 
  DWORD      dwSize; 
  D3DVECTOR  vPosition; 
  D3DVECTOR  vVelocity; 
  D3DVECTOR  vOrientFront; 
  D3DVECTOR  vOrientTop; 
  D3DVALUE   flDistanceFactor; 
  D3DVALUE   flRolloffFactor; 
  D3DVALUE   flDopplerFactor; 
} DS3DLISTENER, *LPDS3DLISTENER;

typedef const DS3DLISTENER *LPCDS3DLISTENER;

Members

dwSize

Size of the structure, in bytes. This member must be initialized before the structure is used.

vPosition, vVelocity, vOrientFront, vOrientTop

D3DVECTOR structures that describe the listener's position, velocity, front orientation, and top orientation, respectively.

flDistanceFactor, flRolloffFactor, flDopplerFactor

The current distance, rolloff, and Doppler factors, respectively.

Requirements

  Header: Declared in Dsound.h.