]> git.localhorst.tv Git - gong.git/blob - src/audio/SoundBank.hpp
code, assets, and other stuff stolen from blank
[gong.git] / src / audio / SoundBank.hpp
1 #ifndef GONG_AUDIO_SOUNDBANK_HPP_
2 #define GONG_AUDIO_SOUNDBANK_HPP_
3
4 #include "Sound.hpp"
5
6 #include <vector>
7
8
9 namespace gong {
10 namespace app {
11         class AssetLoader;
12         class ResourceIndex;
13 }
14 namespace audio {
15
16 class Audio;
17
18
19 class SoundBank {
20
21 public:
22         SoundBank();
23
24         void Load(const app::AssetLoader &, const app::ResourceIndex &);
25
26         const Sound &operator [](std::size_t i) const noexcept { return sounds[i]; }
27
28 private:
29         std::vector<Sound> sounds;
30
31 };
32
33 }
34 }
35
36 #endif