mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(WaveAudio.Write): fixed RIFF size calculation.
This commit is contained in:
parent
417fbfdc78
commit
c85622f5e4
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user