Looped sounds can now be unlooped to avoid cut-offs.
This commit is contained in:
committed by
Matthias Mailänder
parent
9cd3981b94
commit
1dc44c4047
@@ -129,6 +129,11 @@ namespace OpenRA
|
||||
soundEngine.StopAllSounds();
|
||||
}
|
||||
|
||||
public void EndLoop(ISound sound)
|
||||
{
|
||||
soundEngine.SetSoundLooping(false, sound);
|
||||
}
|
||||
|
||||
public void MuteAudio()
|
||||
{
|
||||
soundEngine.Volume = 0f;
|
||||
|
||||
Reference in New Issue
Block a user