Refactoring, FFmpeg updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user