listener.h 451 B

12345678910111213141516171819202122
  1. #ifndef AL_LISTENER_H
  2. #define AL_LISTENER_H
  3. #include <array>
  4. #include "AL/efx.h"
  5. #include "almalloc.h"
  6. struct ALlistener {
  7. std::array<float,3> Position{{0.0f, 0.0f, 0.0f}};
  8. std::array<float,3> Velocity{{0.0f, 0.0f, 0.0f}};
  9. std::array<float,3> OrientAt{{0.0f, 0.0f, -1.0f}};
  10. std::array<float,3> OrientUp{{0.0f, 1.0f, 0.0f}};
  11. float Gain{1.0f};
  12. float mMetersPerUnit{AL_DEFAULT_METERS_PER_UNIT};
  13. DISABLE_ALLOC
  14. };
  15. #endif