From cb628e4309da1f7e8db006ac192badb70868ab01 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 10 Mar 2026 15:50:20 -0400
Subject: [PATCH] wav: note that raw PCM in float32 format is littleendian,
too.
Reference Issue #827.
---
src/decoder_wav.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/decoder_wav.c b/src/decoder_wav.c
index 3351500a..7ca3b037 100644
--- a/src/decoder_wav.c
+++ b/src/decoder_wav.c
@@ -950,7 +950,7 @@ static bool ParseFMT(WAV_AudioData *adata, SDL_IOStream *io, SDL_AudioSpec *spec
case 32:
switch(adata->encoding) {
case PCM_CODE: spec->format = SDL_AUDIO_S32LE; break;
- case IEEE_FLOAT_CODE: spec->format = SDL_AUDIO_F32; break;
+ case IEEE_FLOAT_CODE: spec->format = SDL_AUDIO_F32LE; break;
default: unknown_bits = true; break;
}
break;