[SDL] endianness in SDL_audio.c
slouken at devolution.com
Sat Feb 12 10:54:24 PST 2005
I'm confused. I double checked SDL_wave.c and SDL_mixer.c, and it's correctly
decoding to the audio output endianness. It does assume that the data going in
is the same endianness though. Maybe that's the problem?
In the case of loopwave, it should load the WAV file in LSB format, and then
open the audio device in LSB format, which should cause the SDL audio driver
to perform endian conversion on the stream if the native audio device doesn't
support little endian audio output. Then, the SDL mixing functions should be
mixing little-endian to little-endian.
What's actually happening?
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL