#pragma once #include #include #include #include class AudioManager { std::unordered_map sounds; std::unordered_map scores; bool initialized = true; public: void playSound(std::string soundfile, float volume, bool looping = false); void playMusic(std::string soundfile, float volume, bool looping = true, int fade_time = 0); void stopMusic(int fade_time = 0); AudioManager(); ~AudioManager(); };