#ifndef AUDIOMANAGER_H #define AUDIOMANAGER_H #include #include #include class AudioManager { public: AudioManager() = default; bool loadBackgroundMusic(const std::string& filePath); void playBackgroundMusic(float volume = 50.f, bool loop = true); void stopBackgroundMusic(); bool loadSoundEffect(const std::string& name, const std::string& filePath); void playSoundEffect(const std::string& name, float volume = 50.f); private: sf::Music backgroundMusic; std::unordered_map soundBuffers; std::unordered_map sounds; }; #endif // AUDIOMANAGER_H