SDL_sound

April 20th, 2008: stable branch SDL_sound 1.0.3 released!
May 8th, 2004: development branch begins, with switch from CVS to Subversion.

SDL_sound is a library that handles the decoding of several popular sound file formats, such as .WAV and .MP3. It is meant to make the programmer's sound playback tasks simpler. The programmer gives SDL_sound a filename, or feeds it data directly from one of many sources, and then reads the decoded waveform data back at her leisure. If resource constraints are a concern, SDL_sound can process sound data in programmer-specified blocks. Alternately, SDL_sound can decode a whole sound file and hand back a single pointer to the whole waveform. SDL_sound can also handle sample rate, audio format, and channel conversion on-the-fly and behind-the-scenes, if the programmer desires.

As the name implies, SDL_sound is an add-on to Simple Directmedia Layer, and as such, you'll need it to build and use SDL_sound. SDL gives us lots of convenience for porting and implementing some elements of the library, not to mention that it is a powerful, cross platform answer to DirectX. You should definitely look into it, whether you use SDL_sound or not.

Places SDL_sound is known to be used:

What works:


What doesn't work:


License:

SDL_sound is licensed under the GNU Lesser General Public License version 2.1 (or newer, at your option). Those interested in a closed-source license may contact me about licensing fees.


Documentation:

A Doxygen-generated API reference can be found here. You can generate your own HTML, manpage, LaTeX, RTF, etc documents with this program; download the SDL_sound source and use the included Doxyfile.


Downloads:

Prepackaged source code and binaries:

Downloading with Subversion:

SDL_sound's source code may be downloaded using Subversion. "Svn" allows you to get up-to-the-minute fixes and enhancements; as a developer works on a source tree, you can use svn to mirror that source tree instead of waiting for an official release. Please look at the Subversion website for more information on using svn, where you can also download software for MacOS, Windows, and Unix systems.

SDL_sound is no longer hosted in a CVS repository. You have to use svn or wait for an official release.

Here is the web interface to SDL_sound's svn repository.

To download SDL_sound via svn:

svn co svn://svn.icculus.org/SDL_sound/trunk/ SDL_sound
...or, for the stable (non-development) branch:
svn co svn://svn.icculus.org/SDL_sound/branches/stable-1.0/ SDL_sound-stable-1.0


Mailing list:

There is a mailing list for SDL_sound available. To subscribe, send a blank email to sdlsound-subscribe@icculus.org. To send mail to the list, write to sdlsound@icculus.org.


Page maintained by Ryan C. Gordon.