libdonut  2.3.2
Application framework for cross-platform game development in C++20
Listener.hpp
Go to the documentation of this file.
1 #ifndef DONUT_AUDIO_LISTENER_HPP
2 #define DONUT_AUDIO_LISTENER_HPP
3 
4 #include <donut/math.hpp>
5 
6 namespace donut::audio {
7 
15 struct Listener {
21  vec3 position{0.0f, 0.0f, 0.0f};
22 
28  vec3 velocity{0.0f, 0.0f, 0.0f};
29 
35  vec3 aimDirection{0.0f, 0.0f, -1.0f};
36 
42  vec3 up{0.0f, 1.0f, 0.0f};
43 };
44 
45 } // namespace donut::audio
46 
47 #endif
Definition: Error.hpp:8
Current state of the sound listener, i.e.
Definition: Listener.hpp:15
vec3 aimDirection
The direction the listener is facing.
Definition: Listener.hpp:35
vec3 velocity
Linear velocity of the listener.
Definition: Listener.hpp:28
vec3 up
The direction upwards from the listener.
Definition: Listener.hpp:42
vec3 position
Position of the listener in the sound stage.
Definition: Listener.hpp:21