1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-15 21:58:46 +02:00
MLEM/MLEM.Data/Content/SoundEffectReader.cs
2022-06-17 18:23:47 +02:00

20 lines
530 B
C#

using System.IO;
using Microsoft.Xna.Framework.Audio;
namespace MLEM.Data.Content {
/// <inheritdoc />
public class SoundEffectReader : RawContentReader<SoundEffect> {
/// <inheritdoc />
protected override SoundEffect Read(RawContentManager manager, string assetPath, Stream stream, SoundEffect existing) {
return SoundEffect.FromStream(stream);
}
/// <inheritdoc />
public override string[] GetFileExtensions() {
return new[] {"wav"};
}
}
}