diff --git a/MLEM/Extensions/SoundExtensions.cs b/MLEM/Extensions/SoundExtensions.cs new file mode 100644 index 0000000..fcd7be8 --- /dev/null +++ b/MLEM/Extensions/SoundExtensions.cs @@ -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(); + } + + } +} \ No newline at end of file