#pragma once #include #include #include #include #include namespace sound { struct SoundPair { std::shared_ptr buffer; std::shared_ptr sound; }; struct SoundManager { std::unordered_map sounds; }; void init(); void load(const std::string name, const std::string path); void play(const std::string name, bool loop=false); void play_at(const std::string name, float x, float y, float z); void stop(const std::string name); void mute(bool setting); bool playing(const std::string name); SoundPair& get_sound_pair(const std::string& name); }