From 3c6e030b38683f07d235dc21cde0b46abfe54313 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 31 Mar 2015 14:35:44 +0400 Subject: [PATCH] (AudioFormat.Write): new virtual method. --- GameRes/Audio.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GameRes/Audio.cs b/GameRes/Audio.cs index c1b1e8a5..17c5bbbb 100644 --- a/GameRes/Audio.cs +++ b/GameRes/Audio.cs @@ -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();