.................

This commit is contained in:
2025-11-11 22:19:18 -05:00
parent 7e1b8c8b04
commit d7c481a20b
8 changed files with 32 additions and 4 deletions

View File

@@ -16,6 +16,10 @@ namespace anm2ed::resource
if (path && *path) internal = MIX_LoadAudio(mixer_get(), path, true);
}
Audio::Audio(const std::string& path) : Audio(path.c_str()) {}
Audio::Audio(const std::filesystem::path& path) : Audio(path.string()) {}
Audio::Audio(const unsigned char* data, size_t size)
{
SDL_IOStream* io = SDL_IOFromConstMem(data, size);