#ifndef BLANK_AUDIO_AUDIO_HPP_
#define BLANK_AUDIO_AUDIO_HPP_
+#include "../app/IntervalTimer.hpp"
+
#include <al.h>
#include <glm/glm.hpp>
void StopAll() noexcept;
+ void Update(int dt) noexcept;
+
+private:
+ int NextFree() noexcept;
+
private:
- static constexpr std::size_t NUM_SRC = 1;
+ static constexpr std::size_t NUM_SRC = 16;
ALuint source[NUM_SRC];
+ IntervalTimer timer[NUM_SRC];
+ int last_free;
};