added analyzerconsole

This commit is contained in:
Volker Fischer 2013-02-23 17:49:44 +00:00
parent 88a38a41a2
commit e58976901d
4 changed files with 21 additions and 1 deletions

View file

@ -135,6 +135,21 @@ CNetBufWithStats::CNetBufWithStats() :
} }
} }
void CNetBufWithStats::GetErrorRates ( CVector<double>& vecErrRates,
double& dLimit )
{
// get all the averages of the error statistic
vecErrRates.Init ( NUM_STAT_SIMULATION_BUFFERS );
for ( int i = 0; i < NUM_STAT_SIMULATION_BUFFERS; i++ )
{
vecErrRates[i] = ErrorRateStatistic[i].GetAverage();
}
// get the limit for decision
dLimit = ERROR_RATE_BOUND;
}
void CNetBufWithStats::Init ( const int iNewBlockSize, void CNetBufWithStats::Init ( const int iNewBlockSize,
const int iNewNumBlocks, const int iNewNumBlocks,
const bool bPreserve ) const bool bPreserve )

View file

@ -401,6 +401,7 @@ public:
virtual bool Get ( CVector<uint8_t>& vecbyData ); virtual bool Get ( CVector<uint8_t>& vecbyData );
int GetAutoSetting() { return iCurAutoBufferSizeSetting; } int GetAutoSetting() { return iCurAutoBufferSizeSetting; }
void GetErrorRates ( CVector<double>& vecErrRates, double& dLimit );
protected: protected:
void UpdateAutoSetting(); void UpdateAutoSetting();

View file

@ -123,6 +123,9 @@ Protocol.CreateChanNameMes ( ChInfo.strName );
int GetNetwFrameSizeFact() const { return iNetwFrameSizeFact; } int GetNetwFrameSizeFact() const { return iNetwFrameSizeFact; }
int GetNetwFrameSize() const { return iNetwFrameSize; } int GetNetwFrameSize() const { return iNetwFrameSize; }
void GetBufErrorRates ( CVector<double>& vecErrRates, double& dLimit )
{ SockBuf.GetErrorRates ( vecErrRates, dLimit ); }
EAudComprType GetAudioCompressionType() { return eAudioCompressionType; } EAudComprType GetAudioCompressionType() { return eAudioCompressionType; }
int GetNumAudioChannels() const { return iNumAudioChannels; } int GetNumAudioChannels() const { return iNumAudioChannels; }

View file

@ -238,7 +238,8 @@ public:
int EstimatedOverallDelay ( const int iPingTimeMs ); int EstimatedOverallDelay ( const int iPingTimeMs );
CChannel* GetChannel() { return &Channel; } void GetBufErrorRates ( CVector<double>& vecErrRates, double& dLimit )
{ Channel.GetBufErrorRates ( vecErrRates, dLimit ); }
// settings // settings
CVector<QString> vstrIPAddress; CVector<QString> vstrIPAddress;