(WaveAudio.Write): fixed RIFF size calculation.

This commit is contained in:
morkt 2015-05-11 20:22:14 +04:00
parent 417fbfdc78
commit c85622f5e4

View File

@ -103,7 +103,7 @@ namespace GameRes
{
using (var buffer = new BinaryWriter (output, Encoding.ASCII, true))
{
uint total_size = (uint)(0x2e + source.PcmSize);
uint total_size = (uint)(0x2e - 8 + source.PcmSize);
buffer.Write (Signature);
buffer.Write (total_size);
buffer.Write (0x45564157); // 'WAVE'