From c841fb31fd3dc9580ca2e54bd6f82e9a9c261079 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Thu, 16 Jun 2011 11:46:45 +0000 Subject: [PATCH] small clean up --- src/buffer.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/buffer.cpp b/src/buffer.cpp index 29c0b540..b6bae1e5 100755 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -255,8 +255,9 @@ void CNetBufWithStats::UpdateAutoSetting() // the current network condition. If the current error rate estimation // is higher, it may be a temporary problem which should not change // the current jitter buffer size significantly. - const double dWeightUp = 0.999995; - const double dWeightDown = 0.9999; + const double dWeightUp = 0.999995; + const double dWeightDown = 0.9999; + const double dHysteresisValue = 0.1; // apply non-linear IIR filter LlconMath().UpDownIIR1( dCurIIRFilterResult, @@ -268,7 +269,7 @@ void CNetBufWithStats::UpdateAutoSetting() iCurAutoBufferSizeSetting = LlconMath().DecideWithHysteresis ( dCurIIRFilterResult, iCurDecidedResult, - 0.1 ); + dHysteresisValue ); } /*