stop all sounds on map change
This commit is contained in:
@@ -113,6 +113,11 @@ namespace OpenRA
|
|||||||
InternalSoundVolume * volumeModifier, true);
|
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) { 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, 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); }
|
public static ISound Play(string name, float volumeModifier) { return Play(null, name, true, WPos.Zero, volumeModifier); }
|
||||||
|
|||||||
@@ -387,6 +387,7 @@ namespace OpenRA
|
|||||||
|
|
||||||
frameEndActions.Clear();
|
frameEndActions.Clear();
|
||||||
|
|
||||||
|
Sound.StopAudio();
|
||||||
Sound.StopMusic();
|
Sound.StopMusic();
|
||||||
Sound.StopVideo();
|
Sound.StopVideo();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user