[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pygame sound delay problem
Hi, Joshua. In my own projects I've noticed lag with some sounds that buffer tuning couldn't improve. Those I discovered were largely due to the shape of the sound: there is a minute delay introduced by the SDL call but it is almost unnoticeable when using a sound that has an immediate attack. I am noticing this same kind of thing with your demo sound. When I load this file into Audacity I see there is a short prelude of quiet until the peak decibels are produced, which is quite detectable to my ear. Once I edited out the quiet part with Audacity your demo produces a response that seems much more immediate. If modifying the sound file in this fashion does not solve your issue, it may be the way SDL uses your sound card which unfortunately I think cannot be tuned (someone please correct me if I'm wrong, I too would like to learn a new trick).
Hope this helps.
Gumm