Sign in to follow this  
Marmin

Lag (delay) in playing using sdl_mixer

Recommended Posts

Marmin    523
(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
samuraicrow    325
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
paul_nicholls    167
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
Marmin    523
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

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