mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-27 23:09:10 +02:00
14 lines
388 B
C#
14 lines
388 B
C#
using System;
|
|
using Microsoft.Xna.Framework.Audio;
|
|
|
|
namespace MLEM.Extensions {
|
|
public static class SoundExtensions {
|
|
|
|
[Obsolete("When using the .NET Core version of MonoGame, the replay issue has been fixed. Just call Play() instead.")]
|
|
public static void Replay(this SoundEffectInstance sound) {
|
|
sound.Stop();
|
|
sound.Play();
|
|
}
|
|
|
|
}
|
|
} |