Sign in to follow this  

playing a .wav with sdl

This topic is 4353 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to add support for sound in my game so I added this piece of code:
[sourcecpp]
 // Load in sound effects
                  
                  Mix_Chunk *ping;
                  Mix_Chunk *score;
                  ping = Mix_LoadWAV("sound/ping.wav");
                  score = Mix_LoadWAV("sound/score.wav"); 
Now what would I use to play back the .wav files. Is it Play_Chunk or something along those lines?. I have sdl_mixer installed. Thank you so much.

Share this post


Link to post
Share on other sites

This topic is 4353 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this