stop all sounds on map change

This commit is contained in:
Matthias Mailänder
2015-04-25 15:45:46 +02:00
parent 06f92c5b94
commit 2768fc88e7
2 changed files with 6 additions and 0 deletions

View File

@@ -113,6 +113,11 @@ namespace OpenRA
InternalSoundVolume * volumeModifier, true);
}
public static void StopAudio()
{
soundEngine.StopAllSounds();
}
public static ISound Play(string name) { return Play(null, name, true, WPos.Zero, 1f); }
public static ISound Play(string name, WPos pos) { return Play(null, name, false, pos, 1f); }
public static ISound Play(string name, float volumeModifier) { return Play(null, name, true, WPos.Zero, volumeModifier); }

View File

@@ -387,6 +387,7 @@ namespace OpenRA
frameEndActions.Clear();
Sound.StopAudio();
Sound.StopMusic();
Sound.StopVideo();