testresample: correctly output .wav files that have floating point audio.
--HG-- extra : rebase_source : 12727c9fbaead1d9e954b34dbdae5babef3f4dce extra : histedit_source : bdee71b1310f6a427e0e03ad7c06856ad3c6299f
This commit is contained in:
parent
d4581bb6a7
commit
3ca98abf96
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue