[pulseaudio-discuss] Yet another attempt to fight rewinds

2011-09-19 Thread David Henningsson
A few Atom users have complained about enternal rewinds since they upgraded to 0.99.x, see https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/825709 So here's just an idea. As a last resort, ratelimit the number of rewinds. If there are more than 10 rewinds in 200 ms, go to sleep for

Re: [pulseaudio-discuss] Yet another attempt to fight rewinds

2011-09-19 Thread Tanu Kaskinen
On Mon, 2011-09-19 at 17:49 +0200, David Henningsson wrote: +if (!pa_ratelimit_test(s-thread_info.rewind_limit, PA_LOG_DEBUG)) { +pa_log_warn(Okay, I'm sick and tired of all this rewinding. I'm going to sleep for %lu ms!, +s-thread_info.rewind_limit.interval /