1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

add a soundeffectinstance replay method

This commit is contained in:
Ellpeck 2019-11-07 14:50:10 +01:00
parent 55286e9e83
commit 264d3ee313

View file

@ -0,0 +1,12 @@
using Microsoft.Xna.Framework.Audio;
namespace MLEM.Extensions {
public static class SoundExtensions {
public static void Replay(this SoundEffectInstance sound) {
sound.Stop();
sound.Play();
}
}
}