Lag (delay) in playing using sdl_mixer

Started by
4 comments, last by Marmin 17 years, 8 months ago
(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.
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.
I've tried that, i have tried numerous buffer settings, it didn't matter.
Me too, on both linux and windows. It's very annoying and I'd love to know what is causing it...
---from www.yellow-hut.com/blog
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.
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..

This topic is closed to new replies.

Advertisement