00001 #ifndef HEADER_RESSOUNDPACK_H
00002 #define HEADER_RESSOUNDPACK_H
00003
00004 class Path;
00005
00006 #include "ResourcePack.h"
00007
00008 #include "SDL_mixer.h"
00009
00010
00011
00012
00013 class ResSoundPack : public ResourcePack<Mix_Chunk*> {
00014 protected:
00015 virtual void unloadRes(Mix_Chunk *res);
00016 public:
00017 virtual const char *getName() const { return "sound_pack"; }
00018
00019 static Mix_Chunk *loadSound(const Path &file);
00020 void addSound(const std::string &name, const Path &file);
00021 };
00022
00023 #endif
00024