GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::audio::Listener Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ position

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.

◆ velocity

vec3 grem::audio::Listener::velocity {0.0f, 0.0f, 0.0f}

Linear velocity of the listener.

Used in doppler effect calculations.

◆ forward

vec3 grem::audio::Listener::forward {0.0f, 0.0f, -1.0f}

The direction the listener is facing.

Does not need to be normalized.

◆ up

vec3 grem::audio::Listener::up {0.0f, 1.0f, 0.0f}

The direction upwards from the listener.

Does not need to be normalized.


The documentation for this struct was generated from the following file: