testresample.c: Write out correct size for resampled buffer.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 11 Jan 2009 04:29:36 +0000
changeset 3018d706d3170d7d
parent 3017 3272431eeee2
child 3019 dfd23eb79be9
testresample.c: Write out correct size for resampled buffer.
test/testresample.c
     1.1 --- a/test/testresample.c	Sun Jan 11 04:05:28 2009 +0000
     1.2 +++ b/test/testresample.c	Sun Jan 11 04:29:36 2009 +0000
     1.3 @@ -90,8 +90,8 @@
     1.4      SDL_WriteLE16(io, blockalign);  /* block align */
     1.5      SDL_WriteLE16(io, bitsize);  /* significant bits per sample */
     1.6      SDL_WriteLE32(io, 0x61746164);  /* data */
     1.7 -    SDL_WriteLE32(io, len * cvt.len_mult);  /* size */
     1.8 -    SDL_RWwrite(io, cvt.buf, len * cvt.len_mult, 1);
     1.9 +    SDL_WriteLE32(io, cvt.len_cvt);  /* size */
    1.10 +    SDL_RWwrite(io, cvt.buf, cvt.len_cvt, 1);
    1.11  
    1.12      if (SDL_RWclose(io) == -1)
    1.13      {