|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLSOUND::CListenerDSound Class ReferenceDirectSound listener.
More...
#include <listener_dsound.h>
Inheritance diagram for NLSOUND::CListenerDSound:
List of all members.
Public Methods |
| CListenerDSound (LPDIRECTSOUND3DLISTENER dsoundListener) |
| Constructor. More...
|
virtual | ~CListenerDSound () |
| Deconstructor. More...
|
void | commit3DChanges () |
| Commit any changes to the 3D environment. More...
|
|
virtual void | setPos (const NLMISC::CVector &pos) |
| Set the position vector (default: (0,0,0)) (3D mode only). More...
|
virtual const NLMISC::CVector & | getPos () const |
| Get the position vector. More...
|
virtual void | setVelocity (const NLMISC::CVector &vel) |
| Set the velocity vector (3D mode only) (default: (0,0,0)). More...
|
virtual void | getVelocity (NLMISC::CVector &vel) const |
| Get the velocity vector. More...
|
virtual void | setOrientation (const NLMISC::CVector &front, const NLMISC::CVector &up) |
| Set the orientation vectors (3D mode only) (default: (0,1,0), (0,0,1)). More...
|
virtual void | getOrientation (NLMISC::CVector &front, NLMISC::CVector &up) const |
| Get the orientation vectors. More...
|
virtual void | setGain (float gain) |
| Set the gain (volume value inside [0 , 1]). More...
|
virtual float | getGain () const |
| Get the gain. More...
|
|
virtual void | setDopplerFactor (float f) |
| Set the doppler factor (default: 1) to exaggerate or not the doppler effect. More...
|
virtual void | setRolloffFactor (float f) |
| Set the rolloff factor (default: 1) to scale the distance attenuation effect. More...
|
virtual float | getRolloffFactor () |
| Return the rolloff factor. More...
|
virtual void | setEnvironment (uint env, float size=7.5f) |
| Set DSPROPERTY_EAXLISTENER_ENVIRONMENT and DSPROPERTY_EAXLISTENER_ENVIRONMENTSIZE if EAX available (see EAX listener properties). More...
|
virtual void | setEAXProperty (uint prop, void *value, uint valuesize) |
| Set any EAX listener property if EAX available. More...
|
Static Public Methods |
CListenerDSound * | instance () |
| Return the instance of the singleton. More...
|
Private Methods |
void | release () |
| Release all DirectSound resources. More...
|
Private Attributes |
LPDIRECTSOUND3DLISTENER | _Listener |
| The DirectSound listener interface. More...
|
NLMISC::CVector | _Pos |
Static Private Attributes |
CListenerDSound * | _Instance = NULL |
| The instance of the singleton. More...
|
Friends |
class | CSoundDriverDSound |
Detailed Description
DirectSound listener.
For arguments as 3D vectors, use the NeL vector coordinate system (not OpenAL/OpenGL's one).
-
Author:
-
Peter Hanappe, Olivier Cado , Nevrax France
-
Date:
-
2002
Definition at line 48 of file listener_dsound.h.
Constructor & Destructor Documentation
NLSOUND::CListenerDSound::CListenerDSound |
( |
LPDIRECTSOUND3DLISTENER |
dsoundListener |
) |
|
|
NLSOUND::CListenerDSound::~CListenerDSound |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NLSOUND::CListenerDSound::commit3DChanges |
( |
|
) |
|
|
float NLSOUND::CListenerDSound::getGain |
( |
|
) |
const [virtual] |
|
const NLMISC::CVector & NLSOUND::CListenerDSound::getPos |
( |
|
) |
const [virtual] |
|
float NLSOUND::CListenerDSound::getRolloffFactor |
( |
|
) |
[virtual] |
|
void NLSOUND::CListenerDSound::getVelocity |
( |
NLMISC::CVector & |
vel |
) |
const [virtual] |
|
CListenerDSound* NLSOUND::CListenerDSound::instance |
( |
|
) |
[inline, static] |
|
void NLSOUND::CListenerDSound::release |
( |
|
) |
[private] |
|
void NLSOUND::CListenerDSound::setDopplerFactor |
( |
float |
f |
) |
[virtual] |
|
void NLSOUND::CListenerDSound::setEAXProperty |
( |
uint |
prop, |
|
|
void * |
value, |
|
|
uint |
valuesize |
|
) |
[virtual] |
|
void NLSOUND::CListenerDSound::setEnvironment |
( |
uint |
env, |
|
|
float |
size = 7.5f |
|
) |
[virtual] |
|
|
Set DSPROPERTY_EAXLISTENER_ENVIRONMENT and DSPROPERTY_EAXLISTENER_ENVIRONMENTSIZE if EAX available (see EAX listener properties).
Implements NLSOUND::IListener.
Definition at line 316 of file listener_dsound.cpp. |
void NLSOUND::CListenerDSound::setGain |
( |
float |
gain |
) |
[virtual] |
|
|
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
Implements NLSOUND::IListener.
Definition at line 228 of file listener_dsound.cpp. |
void NLSOUND::CListenerDSound::setPos |
( |
const NLMISC::CVector & |
pos |
) |
[virtual] |
|
void NLSOUND::CListenerDSound::setRolloffFactor |
( |
float |
f |
) |
[virtual] |
|
void NLSOUND::CListenerDSound::setVelocity |
( |
const NLMISC::CVector & |
vel |
) |
[virtual] |
|
Friends And Related Function Documentation
friend class CSoundDriverDSound [friend]
|
|
Member Data Documentation
CListenerDSound * NLSOUND::CListenerDSound::_Instance = NULL [static, private]
|
|
LPDIRECTSOUND3DLISTENER NLSOUND::CListenerDSound::_Listener [private]
|
|
The documentation for this class was generated from the following files:
|
|