Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
testresample.c: Write out correct size for resampled buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 11, 2009
1 parent ebd21ea commit 4053aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testresample.c
Expand Up @@ -90,8 +90,8 @@ int main(int argc, char **argv)
SDL_WriteLE16(io, blockalign); /* block align */
SDL_WriteLE16(io, bitsize); /* significant bits per sample */
SDL_WriteLE32(io, 0x61746164); /* data */
SDL_WriteLE32(io, len * cvt.len_mult); /* size */
SDL_RWwrite(io, cvt.buf, len * cvt.len_mult, 1);
SDL_WriteLE32(io, cvt.len_cvt); /* size */
SDL_RWwrite(io, cvt.buf, cvt.len_cvt, 1);

if (SDL_RWclose(io) == -1)
{
Expand Down

0 comments on commit 4053aed

Please sign in to comment.