summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-05-27 20:51:47 +0200
committerrobojumper <robojumper@gmail.com>2025-05-27 20:51:47 +0200
commitbfdcb7c73ada51dcb35f57b1d70e12d643e1ced4 (patch)
tree80530e8b401f8d3b8d9b86a028d13bf6fe307744 /src
parent11c4cb31307240492b3b2c4a950b0539a1b90955 (diff)
snd_ExternalSoundPlayer OK
Diffstat (limited to 'src')
-rw-r--r--src/nw4r/snd/snd_ExternalSoundPlayer.cpp27
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)
{