#ifndef _AUDIOMANAGER_H_ #define _AUDIOMANAGER_H_ #include #include #include "SDL_audio.h" #include "Sound.h" class AudioManager { static SDL_AudioSpec sAudioFormat; static std::vector> sSoundVector; static std::shared_ptr sInstance; static void mixAudio(void *unused, Uint8 *stream, int len); AudioManager(); public: static void registerSound(std::shared_ptr & sound); static void unregisterSound(std::shared_ptr & sound); static void play(); virtual ~AudioManager(); }; #endif