Make VoE handle longer delays
Review URL: https://webrtc-codereview.appspot.com/1047004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3385 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
c7e935f5eb
commit
218c542c0b
@ -6522,14 +6522,14 @@ Channel::UpdatePacketDelay(const WebRtc_UWord32 timestamp,
|
||||
timeStampDiffMs = 0;
|
||||
return -1;
|
||||
}
|
||||
if (timeStampDiffMs > 5000)
|
||||
if (timeStampDiffMs > (2 * kVoiceEngineMaxMinPlayoutDelayMs))
|
||||
{
|
||||
timeStampDiffMs = 0;
|
||||
}
|
||||
|
||||
if (_averageDelayMs == 0)
|
||||
{
|
||||
_averageDelayMs = timeStampDiffMs;
|
||||
_averageDelayMs = timeStampDiffMs * 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -106,7 +106,7 @@ enum { kVoiceEngineMaxIsacMaxPayloadSizeBytesSwb = 600 };
|
||||
// Lowest minimum playout delay
|
||||
enum { kVoiceEngineMinMinPlayoutDelayMs = 0 };
|
||||
// Highest minimum playout delay
|
||||
enum { kVoiceEngineMaxMinPlayoutDelayMs = 1000 };
|
||||
enum { kVoiceEngineMaxMinPlayoutDelayMs = 10000 };
|
||||
|
||||
// Network
|
||||
// Min packet-timeout time for received RTP packets
|
||||
|
Loading…
x
Reference in New Issue
Block a user