Allow mods to control how looped sounds are used.

This commit is contained in:
Andre Mohren
2023-02-17 23:39:28 +01:00
committed by Matthias Mailänder
parent 68fddf818c
commit 3f0c3a8b9c
4 changed files with 14 additions and 2 deletions

View File

@@ -129,9 +129,14 @@ namespace OpenRA
soundEngine.StopAllSounds();
}
public void EndLoop(ISound sound)
public void SetLooped(ISound sound, bool looped)
{
soundEngine.SetSoundLooping(false, sound);
soundEngine.SetSoundLooping(looped, sound);
}
public void SetPosition(ISound sound, WPos position)
{
soundEngine.SetSoundPosition(sound, position);
}
public void MuteAudio()