1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-28 15:29:10 +02:00
MLEM/MLEM/Content/SoundEffectReader.cs
2020-04-22 00:47:09 +02:00

17 lines
475 B
C#

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