No subject


Wed Jan 24 21:54:03 PST 2007


Documentation is here:

  http://icculus.org/SDL_sound/docs/html/

Function list is here:

  http://icculus.org/SDL_sound/docs/html/globals.html

The library is fairly straightforward. You create a Sound_Sample structure
from some audio file (mp3, wav, ogg, whatever), and then decode it with
Sound_Decode(). When you're done, you call Sound_FreeSample().

A relatively complex example of decoding an audio file and playing it to
the sound card is included with the library source (look for
playsound.c)...ultimately, when you strip out the bells and whistles, it's
just calling Sound_Decode() in a loop to feed decoded data to SDL's audio
callback.

--ryan.






More information about the SDL mailing list