.................
This commit is contained in:
@@ -29,6 +29,11 @@ namespace anm2ed::anm2
|
||||
audio = Audio(this->path.c_str());
|
||||
}
|
||||
|
||||
Sound::Sound(const std::filesystem::path& directory, const std::filesystem::path& path)
|
||||
: Sound(directory.string(), path.string())
|
||||
{
|
||||
}
|
||||
|
||||
Sound::Sound(XMLElement* element, int& id)
|
||||
{
|
||||
if (!element) return;
|
||||
@@ -63,4 +68,4 @@ namespace anm2ed::anm2
|
||||
bool Sound::is_valid() { return audio.is_valid(); }
|
||||
|
||||
void Sound::play() { audio.play(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user