Interface for the listener in cAudio. This class provides abilities to move and orient where your camera or user is in the audio world.
More...
#include <IListener.h>
Interface for the listener in cAudio. This class provides abilities to move and orient where your camera or user is in the audio world.
Definition at line 13 of file IListener.h.
virtual void cAudio::IListener::move |
( |
const cVector3 & |
pos | ) |
|
|
pure virtual |
Convenience function to automatically set the velocity and position for you in a single call.
Velocity will be set to new position - last position
- Parameters
-
pos,: | New position to move the listener to. |
Implemented in cAudio::cListener.
virtual void cAudio::IListener::setDirection |
( |
const cVector3 & |
dir | ) |
|
|
pure virtual |
Sets the direction the listener is facing.
- Parameters
-
dir,: | New direction vector for the listener. |
Implemented in cAudio::cListener.
virtual void cAudio::IListener::setMasterVolume |
( |
const float & |
volume | ) |
|
|
pure virtual |
Sets the global volume modifier (will effect all sources)
- Parameters
-
volume,: | Volume to scale all sources by. Range: 0.0 to +inf. |
Implemented in cAudio::cListener.
virtual void cAudio::IListener::setPosition |
( |
const cVector3 & |
pos | ) |
|
|
pure virtual |
Sets the position of the listener.
Note that you will still have to set velocity after this call for proper doppler effects.
Use move() if you'd like to have cAudio automatically handle velocity for you.
- Parameters
-
pos,: | New position for the listener. |
Implemented in cAudio::cListener.
virtual void cAudio::IListener::setUpVector |
( |
const cVector3 & |
up | ) |
|
|
pure virtual |
Sets the up vector to use for the listener.
Default up vector is Y+, same as OpenGL.
- Parameters
-
up,: | New up vector for the listener. |
Implemented in cAudio::cListener.
virtual void cAudio::IListener::setVelocity |
( |
const cVector3 & |
vel | ) |
|
|
pure virtual |
Sets the current velocity of the listener for doppler effects.
- Parameters
-
vel,: | New velocity for the listener. |
Implemented in cAudio::cListener.
The documentation for this class was generated from the following file: