Refactoring, FFmpeg updates

This commit is contained in:
shweet committed 2025-11-03 00:16:05 -05:00
1 parent 62cd94ca78
commit 1e35910b0a
65 files changed
+2322 -2236

No files matched your search

+7 -2
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;
}
}