1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-06-25 22:21:42 +02:00
MLEM/MLEM/Content/SoundEffectReader.cs

17 lines
475 B
C#
Raw Normal View History

2020-04-22 00:47:09 +02:00
using System;
2020-04-22 00:30:55 +02:00
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"};
}
}
}