Allow using a negative offset with callback buffers
[openal-soft.git] / al / listener.h
blob8153287715e9bac2e5ea8faf8f7ddbbfc8cf9164
1 #ifndef AL_LISTENER_H
2 #define AL_LISTENER_H
4 #include <array>
6 #include "AL/al.h"
7 #include "AL/alc.h"
8 #include "AL/efx.h"
10 #include "almalloc.h"
13 struct ALlistener {
14 std::array<float,3> Position{{0.0f, 0.0f, 0.0f}};
15 std::array<float,3> Velocity{{0.0f, 0.0f, 0.0f}};
16 std::array<float,3> OrientAt{{0.0f, 0.0f, -1.0f}};
17 std::array<float,3> OrientUp{{0.0f, 1.0f, 0.0f}};
18 float Gain{1.0f};
19 float mMetersPerUnit{AL_DEFAULT_METERS_PER_UNIT};
21 DISABLE_ALLOC()
24 #endif