diff options
| author | robojumper <robojumper@gmail.com> | 2025-05-27 20:51:47 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-05-27 20:51:47 +0200 |
| commit | bfdcb7c73ada51dcb35f57b1d70e12d643e1ced4 (patch) | |
| tree | 80530e8b401f8d3b8d9b86a028d13bf6fe307744 /src | |
| parent | 11c4cb31307240492b3b2c4a950b0539a1b90955 (diff) | |
snd_ExternalSoundPlayer OK
Diffstat (limited to 'src')
| -rw-r--r-- | src/nw4r/snd/snd_ExternalSoundPlayer.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/nw4r/snd/snd_ExternalSoundPlayer.cpp b/src/nw4r/snd/snd_ExternalSoundPlayer.cpp index 2cd0c7e7..7f0b1d5a 100644 --- a/src/nw4r/snd/snd_ExternalSoundPlayer.cpp +++ b/src/nw4r/snd/snd_ExternalSoundPlayer.cpp @@ -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) { |
