1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-01 05:10:50 +01:00
MLEM/MLEM.Data/Content/SoundEffectReader.cs

20 lines
530 B
C#
Raw Permalink Normal View History

2020-04-22 00:30:55 +02:00
using System.IO;
using Microsoft.Xna.Framework.Audio;
namespace MLEM.Data.Content {
/// <inheritdoc />
2020-04-22 00:30:55 +02:00
public class SoundEffectReader : RawContentReader<SoundEffect> {
/// <inheritdoc />
2020-04-22 00:30:55 +02:00
protected override SoundEffect Read(RawContentManager manager, string assetPath, Stream stream, SoundEffect existing) {
return SoundEffect.FromStream(stream);
}
/// <inheritdoc />
2020-04-22 00:30:55 +02:00
public override string[] GetFileExtensions() {
return new[] {"wav"};
2020-04-22 00:30:55 +02:00
}
}
2022-06-17 18:23:47 +02:00
}