21 #ifndef SUPER_BUBBA_AWESOME_SPACE_AUDIOMANAGER_H 22 #define SUPER_BUBBA_AWESOME_SPACE_AUDIOMANAGER_H 26 #include <SFML/Audio.hpp> 30 template<
typename Type>
31 static Type* getItemFromMap(std::map<std::string, Type> *map, std::string
id) ;
33 static sf::Sound* loadAndFetchSound(
const std::string &fileName);
34 static sf::Music* loadAndFetchMusic(
const std::string &fileName);
37 static std::map<std::string, sf::Music*> musics;
38 static std::map<std::string, sf::SoundBuffer> soundBuffers;
40 static void loadSoundBuffer(
const std::string &fileName);
41 static sf::Sound* getSoundBuffer(std::string fileName);
43 static void loadMusic(
const std::string &fileName);
44 static sf::Music* getMusic(std::string fileName);
47 #endif //SUPER_BUBBA_AWESOME_SPACE_AUDIOMANAGER_H