From 8921fed34cc53fd6f83b909bfd3f3232765ed8b9 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 12 Feb 2013 15:33:28 +0000 Subject: [PATCH] added ResetNetworkTransportProperties() function --- src/channel.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/channel.h b/src/channel.h index 67c1def7..240497a3 100755 --- a/src/channel.h +++ b/src/channel.h @@ -147,7 +147,17 @@ void CreateConClientListNameMes ( const CVector& vecChanInfo ) void CreateNetTranspPropsMessFromCurrentSettings(); protected: - bool ProtocolIsEnabled(); + bool ProtocolIsEnabled(); + + void ResetNetworkTransportProperties() + { + // set it to a state were no decoding is ever possible (since we want + // only to decode data when a network transport property message is + // received with the correct values + iNetwFrameSizeFact = FRAME_SIZE_FACTOR_PREFERRED; + iNetwFrameSize = CELT_MINIMUM_NUM_BYTES; + iNumAudioChannels = 1; // mono + } // connection parameters CHostAddress InetAddr;