MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onGainChanged

Method onGainChanged

Default/Source/SourceWidget.cpp:1117–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117void
1118SourceWidget::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
1138void
1139SourceWidget::onRecordStartStop(void)

Callers 1

applyCurrentAutogainMethod · 0.95

Calls 2

setAGCEnabledMethod · 0.95
setGainMethod · 0.45

Tested by

no test coverage detected