(AudioFormat.Write): new virtual method.

This commit is contained in:
morkt 2015-03-31 14:35:44 +04:00
parent 26905015c2
commit 3c6e030b38

View File

@ -35,6 +35,7 @@ namespace GameRes
public uint AverageBytesPerSecond;
public ushort BlockAlign;
public ushort BitsPerSample;
public ushort ExtraSize;
}
public abstract class SoundInput : Stream
@ -122,6 +123,11 @@ namespace GameRes
public abstract SoundInput TryOpen (Stream file);
public virtual void Write (SoundInput source, Stream output)
{
throw new System.NotImplementedException ("AudioFormat.Write not implemenented");
}
public static SoundInput Read (Stream file)
{
var input = new MemoryStream();