1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-17 16:24:08 -04:00

Audio modulators audio feedback: AM, NFM, SSB. Removed existing changes for FreeDV and WFM

This commit is contained in:
f4exb
2019-07-31 02:38:50 +02:00
parent 68f6994f49
commit 6d3ab1a730
27 changed files with 630 additions and 91 deletions
+17
View File
@@ -292,6 +292,19 @@ void SSBModGUI::on_mic_toggled(bool checked)
applySettings();
}
void SSBModGUI::on_feedbackEnable_toggled(bool checked)
{
m_settings.m_feedbackAudioEnable = checked;
applySettings();
}
void SSBModGUI::on_feedbackVolume_valueChanged(int value)
{
ui->feedbackVolumeText->setText(QString("%1").arg(value / 100.0, 0, 'f', 2));
m_settings.m_feedbackVolumeFactor = value / 100.0;
applySettings();
}
void SSBModGUI::on_agc_toggled(bool checked)
{
m_settings.m_agc = checked;
@@ -679,6 +692,10 @@ void SSBModGUI::displaySettings()
ui->play->setChecked(m_settings.m_modAFInput == SSBModSettings::SSBModInputAF::SSBModInputFile);
ui->morseKeyer->setChecked(m_settings.m_modAFInput == SSBModSettings::SSBModInputAF::SSBModInputCWTone);
ui->feedbackEnable->setChecked(m_settings.m_feedbackAudioEnable);
ui->feedbackVolume->setValue(roundf(m_settings.m_feedbackVolumeFactor * 100.0));
ui->feedbackVolumeText->setText(QString("%1").arg(m_settings.m_feedbackVolumeFactor, 0, 'f', 2));
blockApplySettings(false);
}