Resolve issues with choppy sound when using res_timing_pthread.