1 #ifndef BLANK_AUDIO_AUDIO_HPP_
2 #define BLANK_AUDIO_AUDIO_HPP_
4 #include "../app/IntervalTimer.hpp"
20 Audio(const Audio &) = delete;
21 Audio &operator =(const Audio &) = delete;
24 void Position(const glm::vec3 &) noexcept;
25 void Velocity(const glm::vec3 &) noexcept;
26 void Orientation(const glm::vec3 &dir, const glm::vec3 &up) noexcept;
30 const glm::vec3 &pos = glm::vec3(0.0f),
31 const glm::vec3 &vel = glm::vec3(0.0f),
32 const glm::vec3 &dir = glm::vec3(0.0f)
35 void StopAll() noexcept;
37 void Update(int dt) noexcept;
40 int NextFree() noexcept;
43 static constexpr std::size_t NUM_SRC = 16;
44 ALuint source[NUM_SRC];
45 IntervalTimer timer[NUM_SRC];