mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-09-27 08:51:04 +02:00
17 lines
No EOL
475 B
C#
17 lines
No EOL
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"};
|
|
}
|
|
|
|
}
|
|
} |