show error message in main window if audio delay is too long
This commit is contained in:
parent
897da0c6bd
commit
aeb9512deb
2 changed files with 903 additions and 858 deletions
File diff suppressed because it is too large
Load diff
|
@ -58,11 +58,15 @@
|
||||||
// update time for GUI controls
|
// update time for GUI controls
|
||||||
#define LEVELMETER_UPDATE_TIME 100 // ms
|
#define LEVELMETER_UPDATE_TIME 100 // ms
|
||||||
#define STATUSBAR_UPDATE_TIME 1000 // ms
|
#define STATUSBAR_UPDATE_TIME 1000 // ms
|
||||||
|
#define ERROR_STATUS_DISPLAY_TIME 3000 // ms
|
||||||
|
|
||||||
// range for signal level meter
|
// range for signal level meter
|
||||||
#define LOW_BOUND_SIG_METER ( -50.0 ) // dB
|
#define LOW_BOUND_SIG_METER ( -50.0 ) // dB
|
||||||
#define UPPER_BOUND_SIG_METER ( 0.0 ) // dB
|
#define UPPER_BOUND_SIG_METER ( 0.0 ) // dB
|
||||||
|
|
||||||
|
// number of ping times > upper bound until error message is shown
|
||||||
|
#define NUM_HIGH_PINGS_UNTIL_ERROR 5
|
||||||
|
|
||||||
|
|
||||||
/* Classes ********************************************************************/
|
/* Classes ********************************************************************/
|
||||||
class CLlconClientDlg : public QDialog, private Ui_CLlconClientDlgBase
|
class CLlconClientDlg : public QDialog, private Ui_CLlconClientDlgBase
|
||||||
|
@ -85,9 +89,11 @@ protected:
|
||||||
CClient* pClient;
|
CClient* pClient;
|
||||||
bool bConnected;
|
bool bConnected;
|
||||||
bool bUnreadChatMessage;
|
bool bUnreadChatMessage;
|
||||||
|
int iErrorStatusCounter;
|
||||||
QTimer TimerSigMet;
|
QTimer TimerSigMet;
|
||||||
QTimer TimerStatus;
|
QTimer TimerStatus;
|
||||||
QTimer TimerPing;
|
QTimer TimerPing;
|
||||||
|
QTimer TimerErrorStatus;
|
||||||
|
|
||||||
virtual void customEvent ( QEvent* Event );
|
virtual void customEvent ( QEvent* Event );
|
||||||
virtual void closeEvent ( QCloseEvent* Event );
|
virtual void closeEvent ( QCloseEvent* Event );
|
||||||
|
|
Loading…
Add table
Reference in a new issue