added ResetNetworkTransportProperties() function
This commit is contained in:
parent
1c2bbbb009
commit
8921fed34c
1 changed files with 11 additions and 1 deletions
|
@ -147,7 +147,17 @@ void CreateConClientListNameMes ( const CVector<CChannelInfo>& vecChanInfo )
|
||||||
void CreateNetTranspPropsMessFromCurrentSettings();
|
void CreateNetTranspPropsMessFromCurrentSettings();
|
||||||
|
|
||||||
protected:
|
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
|
// connection parameters
|
||||||
CHostAddress InetAddr;
|
CHostAddress InetAddr;
|
||||||
|
|
Loading…
Reference in a new issue