- send more quit messages on stop
- change in auto network jitter buffer setting -> smaller values
This commit is contained in:
parent
e9a52a83ff
commit
d6ec1b8978
1 changed files with 535 additions and 531 deletions
|
@ -245,11 +245,15 @@ void CClient::Stop()
|
||||||
// stop audio interface
|
// stop audio interface
|
||||||
Sound.Stop();
|
Sound.Stop();
|
||||||
|
|
||||||
// send disconnect message to server (since we disable our protocol
|
// Send disconnect message to server (Since we disable our protocol
|
||||||
// receive mechanism with the next command, we do not evaluate any
|
// receive mechanism with the next command, we do not evaluate any
|
||||||
// respond from the server, therefore we just hope that the message
|
// respond from the server, therefore we just hope that the message
|
||||||
// gets its way to the server, if not, the old behaviour time-out
|
// gets its way to the server, if not, the old behaviour time-out
|
||||||
// disconnects the connection anyway)
|
// disconnects the connection anyway. Send the message three times
|
||||||
|
// to increase the probability that at least one message makes it
|
||||||
|
// through).
|
||||||
|
Channel.CreateDisconnectionMes();
|
||||||
|
Channel.CreateDisconnectionMes();
|
||||||
Channel.CreateDisconnectionMes();
|
Channel.CreateDisconnectionMes();
|
||||||
|
|
||||||
// disable channel
|
// disable channel
|
||||||
|
@ -497,7 +501,7 @@ void CClient::UpdateSocketBufferSize()
|
||||||
// divide by MIN_SERVER_BLOCK_DURATION_MS because this is the size of
|
// divide by MIN_SERVER_BLOCK_DURATION_MS because this is the size of
|
||||||
// one block in the jitter buffer
|
// one block in the jitter buffer
|
||||||
const double dEstCurBufSet = ( dAudioBufferDurationMs +
|
const double dEstCurBufSet = ( dAudioBufferDurationMs +
|
||||||
3.3 * ( Channel.GetTimingStdDev() + CycleTimeVariance.GetStdDev() ) ) /
|
3 * ( Channel.GetTimingStdDev() + CycleTimeVariance.GetStdDev() ) ) /
|
||||||
SYSTEM_BLOCK_DURATION_MS_FLOAT + 0.5;
|
SYSTEM_BLOCK_DURATION_MS_FLOAT + 0.5;
|
||||||
|
|
||||||
// upper/lower hysteresis decision
|
// upper/lower hysteresis decision
|
||||||
|
|
Loading…
Add table
Reference in a new issue