mirror of
https://github.com/zeldaret/ss
synced 2026-06-22 16:42:53 -04:00
snd_ExternalSoundPlayer OK
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user