Merge pull request #16 from PeterMalkin/master

Correctly fill the value for riff chunk size in the WAV file produced by tinycap
This commit is contained in:
Simon Wilson
2012-10-22 17:12:34 -07:00
+1
View File
@@ -153,6 +153,7 @@ int main(int argc, char **argv)
/* write header now all information is known */
header.data_sz = frames * header.block_align;
header.riff_sz = header.data_sz + sizeof(header) - 8;
fseek(file, 0, SEEK_SET);
fwrite(&header, sizeof(struct wav_header), 1, file);