mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 13:48:57 +08:00
(WaveAudio.Write): fixed RIFF size calculation.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user