new function interface
This commit is contained in:
parent
980b8aae3c
commit
4325c54605
3 changed files with 1010 additions and 1011 deletions
|
@ -96,7 +96,7 @@ public:
|
||||||
const bool bPreserve = false );
|
const bool bPreserve = false );
|
||||||
int GetSockBufNumFrames() const { return iCurSockBufNumFrames; }
|
int GetSockBufNumFrames() const { return iCurSockBufNumFrames; }
|
||||||
|
|
||||||
void UpdateSocketBufferSize ( const double dLocalStdDev );
|
void UpdateSocketBufferSize();
|
||||||
|
|
||||||
int GetUploadRateKbps();
|
int GetUploadRateKbps();
|
||||||
|
|
||||||
|
|
|
@ -962,7 +962,7 @@ fflush(pFileDelay);
|
||||||
CycleTimeVariance.Update();
|
CycleTimeVariance.Update();
|
||||||
|
|
||||||
// update socket buffer size
|
// update socket buffer size
|
||||||
Channel.UpdateSocketBufferSize ( CycleTimeVariance.GetStdDev() );
|
Channel.UpdateSocketBufferSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CClient::EstimatedOverallDelay ( const int iPingTimeMs )
|
int CClient::EstimatedOverallDelay ( const int iPingTimeMs )
|
||||||
|
|
|
@ -694,8 +694,7 @@ void CServer::OnTimer()
|
||||||
vecChannels[iCurChanID].GetAddress() );
|
vecChannels[iCurChanID].GetAddress() );
|
||||||
|
|
||||||
// update socket buffer size
|
// update socket buffer size
|
||||||
vecChannels[iCurChanID].UpdateSocketBufferSize (
|
vecChannels[iCurChanID].UpdateSocketBufferSize();
|
||||||
CycleTimeVariance.GetStdDev() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue