PDA

View Full Version : SDL sound (in C)



Lster
March 29th, 2007, 08:03 PM
Hi

Ive been on a SDL (in C) learning spree :lol:. Anyhow I wanna do some sound work which SDL can apparently do (?)... Can someone show me a small program to load, play and then free a .WAV file. That'd be much appreciated...

Thanks and sorry for my noobishness ;),
Lster

Lster
March 29th, 2007, 08:51 PM
No one have any ideas?

xtacocorex
March 29th, 2007, 08:58 PM
http://gpwiki.org/index.php/C:Playing_a_WAV_Sound_File_With_SDL_mixer

Wybiral
March 29th, 2007, 09:03 PM
This page should be a huge help... LOTS of info: http://www.libsdl.org/docs/html/

Lster
March 29th, 2007, 09:24 PM
Thankyou very much for the tutorial, xtacocorex. Its helped me manage sound at last... And thanks (yet again :) Wybiral - now I can stop pestering you :).

Lster