added ResetNetworkTransportProperties() function

This commit is contained in:
Volker Fischer 2013-02-12 15:33:28 +00:00
parent 1c2bbbb009
commit 8921fed34c

View file

@ -149,6 +149,16 @@ void CreateConClientListNameMes ( const CVector<CChannelInfo>& vecChanInfo )
protected:
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;