testresample: correctly output .wav files that have floating point audio.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 15 May 2018 00:04:02 -0400
changeset 119888fa59be85dfb
parent 11987 0c284754e25b
child 11989 d194f4f41437
testresample: correctly output .wav files that have floating point audio.
test/testresample.c
     1.1 --- a/test/testresample.c	Tue May 15 01:04:11 2018 -0400
     1.2 +++ b/test/testresample.c	Tue May 15 00:04:02 2018 -0400
     1.3 @@ -93,7 +93,7 @@
     1.4      SDL_WriteLE32(io, 0x45564157);      /* WAVE */
     1.5      SDL_WriteLE32(io, 0x20746D66);      /* fmt */
     1.6      SDL_WriteLE32(io, 16);      /* chunk size */
     1.7 -    SDL_WriteLE16(io, 1);       /* uncompressed */
     1.8 +    SDL_WriteLE16(io, SDL_AUDIO_ISFLOAT(spec.format) ? 3 : 1);       /* uncompressed */
     1.9      SDL_WriteLE16(io, cvtchans);   /* channels */
    1.10      SDL_WriteLE32(io, cvtfreq); /* sample rate */
    1.11      SDL_WriteLE32(io, avgbytes);        /* average bytes per second */