Looped sounds can now be unlooped to avoid cut-offs.

This commit is contained in:
Andre Mohren
2023-01-13 09:21:50 +01:00
committed by Matthias Mailänder
parent 9cd3981b94
commit 1dc44c4047

View File

@@ -129,6 +129,11 @@ namespace OpenRA
soundEngine.StopAllSounds();
}
public void EndLoop(ISound sound)
{
soundEngine.SetSoundLooping(false, sound);
}
public void MuteAudio()
{
soundEngine.Volume = 0f;