diff options
author | Chris Robinson <[email protected]> | 2019-08-05 12:15:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-05 12:15:14 -0700 |
commit | d24401c3f3fbed3f0aa7fd5e4777e0d83797fa10 (patch) | |
tree | 292d6a7d4e928c70ee6785ece26d04bcb2d1b44b /al/listener.h | |
parent | 3154a915b1f811416f3c29c6af0c0f13fc3acd3e (diff) |
Move the meters per unit property to the listener
Diffstat (limited to 'al/listener.h')
-rw-r--r-- | al/listener.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/al/listener.h b/al/listener.h index 692880cd..094e3067 100644 --- a/al/listener.h +++ b/al/listener.h @@ -6,6 +6,7 @@ #include "AL/al.h" #include "AL/alc.h" +#include "AL/alext.h" #include "vecmat.h" @@ -18,6 +19,7 @@ struct ALlistenerProps { std::array<ALfloat,3> OrientAt; std::array<ALfloat,3> OrientUp; ALfloat Gain; + ALfloat MetersPerUnit; std::atomic<ALlistenerProps*> next; }; @@ -28,6 +30,7 @@ struct ALlistener { std::array<ALfloat,3> OrientAt{{0.0f, 0.0f, -1.0f}}; std::array<ALfloat,3> OrientUp{{0.0f, 1.0f, 0.0f}}; ALfloat Gain{1.0f}; + ALfloat mMetersPerUnit{AL_DEFAULT_METERS_PER_UNIT}; std::atomic_flag PropsClean; |