Debian Codegraph @

src/gengine/ResSoundPack.h

raw
1 #ifndef HEADER_RESSOUNDPACK_H
2 #define HEADER_RESSOUNDPACK_H
3
4 class Path;
5
6 #include "ResourcePack.h"
7
8 #include "SDL_mixer.h"
9
10 /**
11 * Sound resources.
12 */
13 class ResSoundPack : public ResourcePack<Mix_Chunk*> {
14 public:
15 virtual const char *getName() const { return "sound_pack"; }
16
17 static Mix_Chunk *loadSound(const Path &file);
18 void addSound(const std::string &name, const Path &file);
19 virtual void unloadRes(Mix_Chunk *res);
20 };
21
22 #endif
23