fixed WAV data size writing.

This commit is contained in:
morkt 2015-07-02 03:20:17 +04:00
parent d2aaa1b075
commit dd13ce551b

View File

@ -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);
}