Ryan C. Gordon
icculus at clutteredmind.org
Wed Sep 17 14:21:01 PDT 2003
> i get the SDL_Sound library from libsdl.org and i dont know how to use
>From libsdl.org? Did you mean SDL_mixer? SDL_sound is at icculus.org.
Documentation is here:
Function list is here:
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
More information about the SDL