#include <u_listener.h>
Inheritance diagram for NLSOUND::UListener:
For arguments as 3D vectors, use the NeL vector coordinate system:
* (top) * z * | y (front) * | / * -----x (right) *
Nevrax France
Definition at line 55 of file u_listener.h.
Public Member Functions | |
virtual | ~UListener () |
Destructor. | |
Listener properties | |
virtual float | getGain () const=0 |
Get the gain. | |
virtual void | getOrientation (NLMISC::CVector &front, NLMISC::CVector &up) const=0 |
Get the orientation vectors. | |
virtual const NLMISC::CVector & | getPos () const=0 |
virtual void | getVelocity (NLMISC::CVector &vel) const=0 |
Get the velocity vector. | |
virtual void | setGain (float gain)=0 |
virtual void | setOrientation (const NLMISC::CVector &front, const NLMISC::CVector &up)=0 |
Set the orientation vectors (3D mode only, ignored in stereo mode) (default: (0,1,0), (0,0,1)). | |
virtual void | setPos (const NLMISC::CVector &pos)=0 |
Set the position vector (default: (0,0,0)) (3D mode only). | |
virtual void | setVelocity (const NLMISC::CVector &vel)=0 |
Set the velocity vector (3D mode only, ignored in stereo mode) (default: (0,0,0)). | |
Protected Member Functions | |
UListener () | |
Constructor. |
|
Destructor.
Definition at line 87 of file u_listener.h.
00087 {} |
|
Constructor.
Definition at line 92 of file u_listener.h.
00092 {} |
|
Get the gain.
Implemented in NLSOUND::CListenerUser. |
|
Get the orientation vectors.
Implemented in NLSOUND::CListenerUser. |
|
Get the position vector. See setPos() for details. Implemented in NLSOUND::CListenerUser. |
|
Get the velocity vector.
Implemented in NLSOUND::CListenerUser. |
|
Set the gain (volume value inside [0 , 1]). (default: 1) 0.0 -> silence 0.5 -> -6dB 1.0 -> no attenuation values > 1 (amplification) not supported by most drivers Implemented in NLSOUND::CListenerUser. |
|
Set the orientation vectors (3D mode only, ignored in stereo mode) (default: (0,1,0), (0,0,1)).
Implemented in NLSOUND::CListenerUser. |
|
Set the position vector (default: (0,0,0)) (3D mode only).
Implemented in NLSOUND::CListenerUser. |
|
Set the velocity vector (3D mode only, ignored in stereo mode) (default: (0,0,0)).
Implemented in NLSOUND::CListenerUser. |