mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
testresample: correctly output .wav files that have floating point audio.
This commit is contained in:
parent
e2ec1eb12e
commit
ed4fe4c9a0
@ -93,7 +93,7 @@ main(int argc, char **argv)
|
|||||||
SDL_WriteLE32(io, 0x45564157); /* WAVE */
|
SDL_WriteLE32(io, 0x45564157); /* WAVE */
|
||||||
SDL_WriteLE32(io, 0x20746D66); /* fmt */
|
SDL_WriteLE32(io, 0x20746D66); /* fmt */
|
||||||
SDL_WriteLE32(io, 16); /* chunk size */
|
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_WriteLE16(io, cvtchans); /* channels */
|
||||||
SDL_WriteLE32(io, cvtfreq); /* sample rate */
|
SDL_WriteLE32(io, cvtfreq); /* sample rate */
|
||||||
SDL_WriteLE32(io, avgbytes); /* average bytes per second */
|
SDL_WriteLE32(io, avgbytes); /* average bytes per second */
|
||||||
|
Loading…
Reference in New Issue
Block a user