mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-12-03 09:05:12 -05:00
Fix #616 wrong WAV size reported in header (thanks @nsmith-)
This commit is contained in:
parent
c1e60f31f5
commit
7f732735ce
@ -106,7 +106,7 @@ bool AudioFileWAV::closeFile()
|
|||||||
|
|
||||||
// Fix the data chunk header to contain the data size
|
// Fix the data chunk header to contain the data size
|
||||||
outputFileStream.seekp(dataChunkPos + 4);
|
outputFileStream.seekp(dataChunkPos + 4);
|
||||||
write_word(outputFileStream, file_length - dataChunkPos + 8);
|
write_word(outputFileStream, file_length - (dataChunkPos + 8), 4);
|
||||||
|
|
||||||
// Fix the file header to contain the proper RIFF chunk size, which is (file size - 8) bytes
|
// Fix the file header to contain the proper RIFF chunk size, which is (file size - 8) bytes
|
||||||
outputFileStream.seekp(0 + 4);
|
outputFileStream.seekp(0 + 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user