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

This commit is contained in:
shweet committed 2025-11-11 22:19:18 -05:00
1 parent 7e1b8c8b04
commit d7c481a20b
8 files changed
+32 -4

No files matched your search

+4
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);