1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-23 05:08:34 +01:00

mark replay as obsolete

This commit is contained in:
Ellpeck 2020-04-11 15:15:04 +02:00
parent ff69aba67a
commit 5404c36f73

View file

@ -1,8 +1,10 @@
using System;
using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Audio;
namespace MLEM.Extensions { namespace MLEM.Extensions {
public static class SoundExtensions { 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) { public static void Replay(this SoundEffectInstance sound) {
sound.Stop(); sound.Stop();
sound.Play(); sound.Play();