From 625181113b3143ba4d9970c2dd210ae9948cc91a Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Wed, 2 Sep 2009 05:47:25 +0000 Subject: [PATCH] added changelog entry, added test channel --- ChangeLog | 7 ++++++- src/protocol.cpp | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 817dec5b..884d742b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ 3.0.2 - fix for Jack Linux audio interface: ports are only once registered and - connect when the software is started up + connect when the software is started up + +- bug fix: under bad network conditions chat messages were randomly repeated + 3.0.1 @@ -14,6 +17,7 @@ - use low complexity CELT encoder profile, this lowers audio dropout probability on slow computers + 3.0.0 - introduced new audio codec "CELT", not compatible to old versions @@ -27,6 +31,7 @@ - various bug fixes (e.g. disconnecting did not work reliably) + 2.3.0 - new system sample rate of 33 kHz to improve audio quality, not compatible diff --git a/src/protocol.cpp b/src/protocol.cpp index fc2d1a92..df3fadfe 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -308,6 +308,12 @@ bool CProtocol::ParseMessage ( const CVector& vecbyData, if ( !ParseMessageFrame ( vecbyData, iNumBytes, iRecCounter, iRecID, vecData ) ) { + +/* +// TEST channel implementation: randomly delete protocol messages (50 % loss) +if ( rand() < ( RAND_MAX / 2 ) ) return false; +*/ + // In case we received a message and returned an answer but our answer // did not make it to the receiver, he will resend his message. We check // here if the message is the same as the old one, and if this is the