SDL_Sound

i get the SDL_Sound library from libsdl.org and i dont know how to use it!

may someone help me with this library?

tks

i get the SDL_Sound library from libsdl.org and i dont know how to use
it!

From libsdl.org? Did you mean SDL_mixer? SDL_sound is at icculus.org.

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.