Jump to content
  • Advertisement
Sign in to follow this  
Marmin

Lag (delay) in playing using sdl_mixer

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

(using Linux ubuntu) I've noticed a delay in playing mix chunks, a considerable delay (0.3 seconds). I've browsed Google and found some similar problems, but a good answer I couldn't find. Has anyone using the mixer had these problems? Is this a driver problem or a sdl mixer problem? Can't seem to find this delay in other applications.

Share this post


Link to post
Share on other sites
Advertisement
What is the size of the mix buffer? Try setting it to something fairly low for low latancy. 4096 samples is usually just about right. Anything less gets choppy anything more and the lag increases.

Share this post


Link to post
Share on other sites
Quote:
Original post by Marmin
(using Linux ubuntu) I've noticed a delay in playing mix chunks, a considerable delay (0.3 seconds). I've browsed Google and found some similar problems, but a good answer I couldn't find. Has anyone using the mixer had these problems? Is this a driver problem or a sdl mixer problem? Can't seem to find this delay in other applications.


I was getting delays of almost a second under windows using SDL to play sound effects and I couldn't fix the problem :(

So I migrated to OpenAL and had no more issues :)

cheers,
Paul.

Share this post


Link to post
Share on other sites
I'm going to ask it on the mailing list. Will let u know if I get some information. As for Openal that seems to be better but I'm reluctant to use a load of libraries for just a simple game..

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!