testresample: write correct length to the .wav header.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 09 Jan 2017 15:56:11 -0500
changeset 10803fda48e7c29e8
parent 10802 6afc9b833867
child 10804 1502bb751ca4
testresample: write correct length to the .wav header.
test/testresample.c
     1.1 --- a/test/testresample.c	Mon Jan 09 11:58:01 2017 -0800
     1.2 +++ b/test/testresample.c	Mon Jan 09 15:56:11 2017 -0500
     1.3 @@ -89,7 +89,7 @@
     1.4      avgbytes = cvtfreq * blockalign;
     1.5  
     1.6      SDL_WriteLE32(io, 0x46464952);      /* RIFF */
     1.7 -    SDL_WriteLE32(io, len * cvt.len_mult + 36);
     1.8 +    SDL_WriteLE32(io, cvt.len_cvt + 36);
     1.9      SDL_WriteLE32(io, 0x45564157);      /* WAVE */
    1.10      SDL_WriteLE32(io, 0x20746D66);      /* fmt */
    1.11      SDL_WriteLE32(io, 16);      /* chunk size */