mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(AudioFormat.Write): new virtual method.
This commit is contained in:
@@ -35,6 +35,7 @@ namespace GameRes
|
|||||||
public uint AverageBytesPerSecond;
|
public uint AverageBytesPerSecond;
|
||||||
public ushort BlockAlign;
|
public ushort BlockAlign;
|
||||||
public ushort BitsPerSample;
|
public ushort BitsPerSample;
|
||||||
|
public ushort ExtraSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract class SoundInput : Stream
|
public abstract class SoundInput : Stream
|
||||||
@@ -122,6 +123,11 @@ namespace GameRes
|
|||||||
|
|
||||||
public abstract SoundInput TryOpen (Stream file);
|
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)
|
public static SoundInput Read (Stream file)
|
||||||
{
|
{
|
||||||
var input = new MemoryStream();
|
var input = new MemoryStream();
|
||||||
|
|||||||
Reference in New Issue
Block a user