|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Current state of the sound listener, i.e. the user perceiving the audio, within a SoundStage. More...
#include <GREM/audio/Listener.hpp>
Public Attributes | |
| vec3 | position {0.0f, 0.0f, 0.0f} |
| Position of the listener in the sound stage. | |
| vec3 | velocity {0.0f, 0.0f, 0.0f} |
| Linear velocity of the listener. | |
| vec3 | forward {0.0f, 0.0f, -1.0f} |
| The direction the listener is facing. | |
| vec3 | up {0.0f, 1.0f, 0.0f} |
| The direction upwards from the listener. | |
Current state of the sound listener, i.e. the user perceiving the audio, within a SoundStage.
This information is used in the calculations for various 3D sound effect simulations such as distance attenuation, sound delay and the doppler effect.
| vec3 grem::audio::Listener::position {0.0f, 0.0f, 0.0f} |
Position of the listener in the sound stage.
Used for distance attenuation and sound delay, if enabled.
| vec3 grem::audio::Listener::velocity {0.0f, 0.0f, 0.0f} |
Linear velocity of the listener.
Used in doppler effect calculations.
| vec3 grem::audio::Listener::forward {0.0f, 0.0f, -1.0f} |
The direction the listener is facing.
Does not need to be normalized.
| vec3 grem::audio::Listener::up {0.0f, 1.0f, 0.0f} |
The direction upwards from the listener.
Does not need to be normalized.