Skip to content

Commit

Permalink
testresample: correctly output .wav files that have floating point au…
Browse files Browse the repository at this point in the history
…dio.
  • Loading branch information
icculus committed May 15, 2018
1 parent e2ec1eb commit ed4fe4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testresample.c
Expand Up @@ -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 */
Expand Down

0 comments on commit ed4fe4c

Please sign in to comment.