[SDL] Audio in game

Ryan C. Gordon icculus at icculus.org
Wed Apr 18 17:52:16 PDT 2007


> - OpenAL is bad because totally broken on MacOS X (osx is my primary  
> OS, but it should work on win, osx and linux)

This has not been my experience on the Mac.

> - SDL audio support sucks (not my words, I have NO idea)

The "support" is fine, it works everywhere you might use SDL, but it's 
very lowlevel...you should expect to write your own mixing routines, or 
use ones built on top of SDL...all SDL does is give you a way to put 
final, mixed bits to the audio hardware.

Most people should really know what they're doing and expect to work 
hard if they target SDL audio directly. It's usually wiser to find a 
higher-level audio library built over it.

Between the three: OpenAL, SDL, and CoreAudio, I recommend OpenAL to 
most people. On Linux, OpenAL very well might use SDL for accessing the 
audio hardware behind the scenes anyhow.   :)

--ryan.



More information about the SDL mailing list