diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2018-05-15 00:04:02 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2018-05-15 00:04:02 -0400 |
commit | 3b7a44ffedc36b6ce5bc72ea0a51b9791a6ceb74 (patch) | |
tree | 786ecdc2ac48f6cea88d9ed716ad6f643f25b163 /test/testresample.c | |
parent | ba478d4b11b52fad5e9a95081b2674077bdd4991 (diff) | |
download | sdl-3b7a44ffedc36b6ce5bc72ea0a51b9791a6ceb74.tar.gz |
testresample: correctly output .wav files that have floating point audio.
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 bcdaa669a..4234d9e45 100644 --- a/test/testresample.c +++ b/test/testresample.c @@ -93,7 +93,7 @@ main(int argc, char **argv) SDL_WriteLE32(io, 0x45564157); /* WAVE */ SDL_WriteLE32(io, 0x20746D66); /* fmt */ SDL_WriteLE32(io, 16); /* chunk size */ - SDL_WriteLE16(io, 1); /* uncompressed */ + SDL_WriteLE16(io, SDL_AUDIO_ISFLOAT(spec.format) ? 3 : 1); /* uncompressed */ SDL_WriteLE16(io, cvtchans); /* channels */ SDL_WriteLE32(io, cvtfreq); /* sample rate */ SDL_WriteLE32(io, avgbytes); /* average bytes per second */ |