DS3DLISTENER

The DS3DLISTENER structure contains all information necessary to uniquely describe the 3-D world parameters and position of the listener. This structure is used with the IDirectSound3DListener::GetAllParameters and IDirectSound3DListener::SetAllParameters methods.

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, and vOrientTop

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

flDistanceFactor, flRolloffFactor, and flDopplerFactor

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

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 OSR2 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in dsound.h.