From dd13ce551bbe7061505b8405968681436daa9868 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 2 Jul 2015 03:20:17 +0400 Subject: [PATCH] fixed WAV data size writing. --- GameRes/AudioWAV.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameRes/AudioWAV.cs b/GameRes/AudioWAV.cs index c7c6caf6..3aa1e44c 100644 --- a/GameRes/AudioWAV.cs +++ b/GameRes/AudioWAV.cs @@ -146,7 +146,7 @@ namespace GameRes buffer.Write (source.Format.BitsPerSample); buffer.Write ((ushort)0); buffer.Write (0x61746164); // 'data' - buffer.Write (source.PcmSize); + buffer.Write ((uint)source.PcmSize); source.Position = 0; source.CopyTo (output); }