| 1115 | } |
| 1116 | |
| 1117 | void |
| 1118 | SourceWidget::onGainChanged(QString name, float val) |
| 1119 | { |
| 1120 | this->setAGCEnabled(false); |
| 1121 | |
| 1122 | if (this->profile != nullptr) |
| 1123 | this->profile->setGain(name.toStdString(), val); |
| 1124 | |
| 1125 | if (m_analyzer != nullptr) { |
| 1126 | try { |
| 1127 | m_analyzer->setGain(name.toStdString(), val); |
| 1128 | } catch (Suscan::Exception &) { |
| 1129 | (void) QMessageBox::critical( |
| 1130 | this, |
| 1131 | "SigDigger error", |
| 1132 | "Source does not allow adjusting gain settings", |
| 1133 | QMessageBox::Ok); |
| 1134 | } |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | void |
| 1139 | SourceWidget::onRecordStartStop(void) |
no test coverage detected