43 buffer = filename + message;
46 virtual const char*
what() const noexcept {
47 return buffer.c_str();
53 Audio(
const std::string& path);
59 static void mixaudio(
void* userdata, uint8_t* stream,
int len);
60 std::map<std::string, std::shared_ptr<Eng3D::Audio>> sounds;
67 const std::shared_ptr<Audio>
load(
const std::string& path);
virtual const char * what() const noexcept
AudioException(const std::string &filename, const std::string &message)
const std::shared_ptr< Audio > load(const std::string &path)
std::vector< std::shared_ptr< Eng3D::Audio > > sound_queue
std::vector< std::shared_ptr< Eng3D::Audio > > music_queue