snd_ExternalSoundPlayer OK

This commit is contained in:
robojumper
2025-05-27 20:51:47 +02:00
parent 11c4cb3130
commit bfdcb7c73a
3 changed files with 33 additions and 1 deletions
+27
View File
@@ -42,10 +42,37 @@ ExternalSoundPlayer::~ExternalSoundPlayer() {
}
}
#if 0
// not sure which one uses this exactly, maybe StopAllSound?
DECOMP_FORCE_CLASS_METHOD(
BasicSound::ExtSoundPlayerPlayLinkList,
GetPointerFromNode(static_cast<ut::LinkListNode *>(nullptr)));
#endif
void ExternalSoundPlayer::StopAllSound(int fadeFrames)
{
NW4R_RANGE_FOR_NO_AUTO_INC(it, mSoundList)
{
it++->Stop(fadeFrames);
}
}
void ExternalSoundPlayer::PauseAllSound(bool flag, int fadeFrames)
{
NW4R_RANGE_FOR_NO_AUTO_INC(it, mSoundList)
{
it++->Pause(flag, fadeFrames);
}
}
void ExternalSoundPlayer::DetachSoundActorAll(SoundActor *sound)
{
NW4R_RANGE_FOR_NO_AUTO_INC(it, mSoundList)
{
it++->DetachSoundActor(sound);
}
}
bool ExternalSoundPlayer::AppendSound(BasicSound *sound)
{