/** Loads the settings for this page */ void AudioInputConfig::load() { //connect( ui.allowIpDeterminationCB, SIGNAL( toggled( bool ) ), this, SLOT( toggleIpDetermination(bool) ) ); //connect( ui.allowTunnelConnectionCB, SIGNAL( toggled( bool ) ), this, SLOT( toggleTunnelConnection(bool) ) ); qtTick = new QTimer(this); connect( qtTick, SIGNAL( timeout ( ) ), this, SLOT( on_Tick_timeout() ) ); qtTick->start(20); /*if (AudioInputRegistrar::qmNew) { QList<QString> keys = AudioInputRegistrar::qmNew->keys(); foreach(QString key, keys) { qcbSystem->addItem(key); } } qcbSystem->setEnabled(qcbSystem->count() > 1);*/ ui.qcbTransmit->addItem(tr("Continuous"), RsVoip::AudioTransmitContinous); ui.qcbTransmit->addItem(tr("Voice Activity"), RsVoip::AudioTransmitVAD); ui.qcbTransmit->addItem(tr("Push To Talk"), RsVoip::AudioTransmitPushToTalk); abSpeech = new AudioBar(); abSpeech->qcBelow = Qt::red; abSpeech->qcInside = Qt::yellow; abSpeech->qcAbove = Qt::green; //abSpeech->setGeometry(9,20,50,10); ui.qwVadLayout_2->addWidget(abSpeech,0,0,1,0); //on_qcbPushClick_clicked(g.s.bPushClick); //ui.on_Tick_timeout(); loadSettings(); }
AudioStats::AudioStats(QWidget *p) : QDialog(p) { setAttribute(Qt::WA_DeleteOnClose, true); qtTick = new QTimer(this); qtTick->setObjectName(QLatin1String("Tick")); qtTick->start(50); setupUi(this); AudioInputPtr ai = g.ai; if (ai && ai->sesEcho) { qgbEcho->setVisible(true); } else { qgbEcho->setVisible(false); } bTalking = false; abSpeech->iPeak = -1; abSpeech->qcBelow = Qt::red; abSpeech->qcInside = Qt::yellow; abSpeech->qcAbove = Qt::green; on_Tick_timeout(); }