Sign in to follow this  

Lag (delay) in playing using sdl_mixer

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

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