From d1fa3ff53e7ccc9734e858c8965e82f4307e4874 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Thu, 19 Mar 2009 17:45:43 +0000 Subject: [PATCH] yet another auto jitter buffer fix --- src/client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index 97a65115..00678d56 100755 --- a/src/client.cpp +++ b/src/client.cpp @@ -444,8 +444,8 @@ void CClient::UpdateSocketBufferSize() // We use the time response measurement for the automatic setting. // Assumptions: // - the audio interface/network jitter is assumed to be Gaussian - // - the buffer size is set to 3 times the standard deviation of - // the jitter (~97% of the jitter should be fit in the + // - the buffer size is set to 3.3 times the standard deviation of + // the jitter (~98% of the jitter should be fit in the // buffer) // - introduce a hysteresis to avoid switching the buffer sizes all the // time in case the time response measurement is close to a bound @@ -469,7 +469,7 @@ void CClient::UpdateSocketBufferSize() // divide by MIN_SERVER_BLOCK_DURATION_MS because this is the size of // one block in the jitter buffer const double dEstCurBufSet = ( dAudioBufferDurationMs + - 3 * ( Channel.GetTimingStdDev() + CycleTimeVariance.GetStdDev() ) ) / + 3.3 * ( Channel.GetTimingStdDev() + CycleTimeVariance.GetStdDev() ) ) / MIN_SERVER_BLOCK_DURATION_MS + 0.5; // upper/lower hysteresis decision