Skip to content

Commit

Permalink
testresample: write correct length to the .wav header.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 9, 2017
1 parent ad7c26f commit 97f19cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testresample.c
Expand Up @@ -89,7 +89,7 @@ main(int argc, char **argv)
avgbytes = cvtfreq * blockalign;

SDL_WriteLE32(io, 0x46464952); /* RIFF */
SDL_WriteLE32(io, len * cvt.len_mult + 36);
SDL_WriteLE32(io, cvt.len_cvt + 36);
SDL_WriteLE32(io, 0x45564157); /* WAVE */
SDL_WriteLE32(io, 0x20746D66); /* fmt */
SDL_WriteLE32(io, 16); /* chunk size */
Expand Down

0 comments on commit 97f19cc

Please sign in to comment.