1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-25 01:39:23 +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();
}
}
}