Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

graveyard filla

having problems with SDL mixer and playing a sound

This topic is 5407 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

has anyone here ever worked with SDL mixer? im trying to add sound effects to my pong game, but for some reason the sound is being delayed. like when the sound is supposed to be played, it waits half a second or so and then plays it. i dont know why this is happening. its not my sound effect because the sound effect itself is 00:00 seconds long. also, its not my code because ive tried switching the line where the sound is played Mix_PlayChannel(0,hit_ball,0); with the crappy built in sound API PlaySound() the PlaySound() function played the sound when i wanted it to. but i dont want to use this crappy API, i want to use the good SDL_Mixer library. does anyone have any experiance with it, and if so, what is my problem? why isnt my sound playing right away? thanks for any help

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!