Refactoring, FFmpeg updates

This commit is contained in:
2025-11-03 00:16:05 -05:00
parent 62cd94ca78
commit 1e35910b0a
65 changed files with 2322 additions and 2236 deletions

View File

@@ -22,9 +22,9 @@ namespace anm2ed::resource
internal = nullptr;
}
void Audio::play()
void Audio::play(MIX_Mixer* mixer)
{
MIX_PlayAudio(mixer_get(), internal);
MIX_PlayAudio(mixer ? mixer : mixer_get(), internal);
}
Audio::Audio(Audio&& other) noexcept
@@ -46,4 +46,9 @@ namespace anm2ed::resource
{
unload();
}
bool Audio::is_valid()
{
return internal;
}
}