mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 17:58:27 +00:00
testresample: write correct length to the .wav header.
This commit is contained in:
parent
ad7c26ff02
commit
97f19cc367
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue