mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-10 16:49:09 +01:00
19 lines
No EOL
543 B
C#
19 lines
No EOL
543 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[] {"ogg", "wav", "mp3"};
|
|
}
|
|
|
|
}
|
|
} |