diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2017-01-09 15:56:11 -0500 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2017-01-09 15:56:11 -0500 |
commit | 675addfd766a7d9bc65c210bfd869593c8c57396 (patch) | |
tree | c3643ca9163d224e3681f235de26fac6cc357871 /test/testresample.c | |
parent | ec9926b0ce8ee7aa1984c2680f05896e4974799b (diff) | |
download | sdl-675addfd766a7d9bc65c210bfd869593c8c57396.tar.gz |
testresample: write correct length to the .wav header.
Diffstat (limited to 'test/testresample.c')
-rw-r--r-- | test/testresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testresample.c b/test/testresample.c index 85a8eb71f..a54a47dcb 100644 --- a/test/testresample.c +++ b/test/testresample.c @@ -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 */ |