Jul 30, 2013 at 11:02pm Jul 30, 2013 at 11:02pm UTC
Can someone please post the SDL code to load a wav file and play it please? Thanks in advance.
Jul 31, 2013 at 1:27am Jul 31, 2013 at 1:27am UTC
It's not a SDL forum. Why not ask on their mailing list (although you'll definitely be flamed).
Jul 31, 2013 at 8:56pm Jul 31, 2013 at 8:56pm UTC
I've gotten sdl help before. Please? I have tried sdl forums before. They are horrible.
Jul 31, 2013 at 10:13pm Jul 31, 2013 at 10:13pm UTC
well help you but we wont write code for you, unless you mean the functions/structs used, in which case you can google that as well as we can
Jul 31, 2013 at 10:23pm Jul 31, 2013 at 10:23pm UTC
On dev-c++ the sdl tutorial for this doesn't work. Lazyfoo doesn't cover this. The problem is just before my program loads the audio the program freezes.
Aug 1, 2013 at 5:31am Aug 1, 2013 at 5:31am UTC
We have nothing to go on.
Aug 1, 2013 at 8:31am Aug 1, 2013 at 8:31am UTC
i have no any IDEA.... :( i am also facing this problem...
Aug 2, 2013 at 10:28pm Aug 2, 2013 at 10:28pm UTC
I am using sdl 1.2 or whatever. Anyways I get 4 errors. All undefined references to mix close open load and free.
Aug 2, 2013 at 10:35pm Aug 2, 2013 at 10:35pm UTC
I am including sdlmixer and sdl and stdio and sdl_image.
Aug 3, 2013 at 4:11am Aug 3, 2013 at 4:11am UTC
undefined reference means you're probably not linking to the right libs. You need to link to the SDL mixer lib.
Aug 3, 2013 at 4:49pm Aug 3, 2013 at 4:49pm UTC
The code you're using doesn't matter. Adding the lib to the linker input options is done in your IDE's linker settings or in your compiler's commandline options (if you're not using an IDE).
Aug 3, 2013 at 9:56pm Aug 3, 2013 at 9:56pm UTC
I typed in what I typed for sdl image but I changed image to mixer and it's still not working.
Aug 4, 2013 at 12:45am Aug 4, 2013 at 12:45am UTC
Dev-c++ 4.9.9.2. I have a feeling I am loading but not playing the audio.
Aug 4, 2013 at 12:46am Aug 4, 2013 at 12:46am UTC
Wait... I thought you were getting a linker error?
Aug 4, 2013 at 12:54am Aug 4, 2013 at 12:54am UTC
Now it's not working meaning that it's not playing. I forgot the play music line of code but it still doesn't work.