[SDL] endianness in SDL_audio.c

Sam Lantinga slouken at devolution.com
Tue Feb 15 18:15:33 PST 2005


> The whole point is to avoid the need for both the application (calling 
> code) and SDL having (basically) the same convertsion code.

Right, most of the time this is the case, and the calling code can just
pass NULL for obtained because it doesn't care what the underlying audio
driver is doing.

> > Supposedly, SDL_MixAudio() gets the correct audio format and converts
> > to the right one.  Is that what's happening?

> Not sure I follow you here, if it gets the correct audio format, why 
> should it convert to the right one?

Sorry, it's not doing any conversion, I meant to say "mixing to the right one".

> Currently, no conversion is done in the application in question. 

Probably all that needs to happen to make it work is just pass NULL as the
'obtained' parameter when opening the audio system.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment




More information about the SDL mailing list