Thank you, Kevin. So the same story is going to happen if I modify PJMEDIA_SND_DEFAULT_REC_LATENCY lower. right? Luke On Sat, Dec 31, 2011 at 2:25 AM, Kelvin Chan <kelvin.chan at positronics.com> wrote: >> Hi everyone: >> >> First of all, thanks for this great open source project. I'm a rookie >> to pjsip, and got many questions. I saw the wiki of Optimizing Sound >> Device Latency and it said: >> Setting the latency to lower value will affect the audio stability (it >> will make it more sensitive to CPU disruptions), so choose the value >> carefully. >> >> I don't get it. Can anyone describe a little bit of the reason? >> >> > > The reason is buffer underrun. If CPU is distracted by other tasks > other than shuffling packets from Jitsi to soundcard, soundcard won't > have enough data to playout the audio which results in buffer > underrun. > > The higher the latency = higher playout buffer = lower chance of > buffer underrun. > The lower the latency = lower playout buffer = higher chance of buffer underrun. > > kel > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org