1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

SSB modulator: use settings in GUI (2)

This commit is contained in:
f4exb 2017-10-19 08:45:28 +02:00
parent cf78f9199c
commit f3513f9d9a

View File

@ -230,6 +230,10 @@ bool SSBModGUI::handleMessage(const Message& message)
void SSBModGUI::channelMarkerChanged()
{
m_settings.m_rgbColor = m_channelMarker.getColor().rgb();
m_settings.m_udpAddress = m_channelMarker.getUDPAddress();
m_settings.m_udpPort = m_channelMarker.getUDPReceivePort();
displaySettings();
applySettings();
}
@ -712,22 +716,40 @@ void SSBModGUI::applySettings()
ui->deltaFrequency->setValue(m_channelMarker.getCenterFrequency());
m_ssbMod->configure(m_ssbMod->getInputMessageQueue(),
ui->BW->value() * 100.0f,
ui->lowCut->value() * 100.0f,
ui->toneFrequency->value() * 10.0f,
ui->volume->value() / 10.0f,
m_settings.m_bandwidth,
m_settings.m_lowCutoff,
m_settings.m_toneFrequency,
m_settings.m_volumeFactor,
m_spanLog2,
ui->audioBinaural->isChecked(),
ui->audioFlipChannels->isChecked(),
ui->dsb->isChecked(),
ui->audioMute->isChecked(),
ui->playLoop->isChecked(),
ui->agc->isChecked(),
ui->agcOrder->value() / 100.0,
m_agcTimeConstant[ui->agcTime->value()],
m_settings.m_audioBinaural,
m_settings.m_audioFlipChannels,
m_settings.m_dsb,
m_settings.m_audioMute,
m_settings.m_playLoop,
m_settings.m_agc,
m_settings.m_agcOrder,
m_agcTimeConstant[ui->agcTime->value()], // TBD
ui->agcThreshold->value(),
ui->agcThresholdGate->value(),
ui->agcThresholdDelay->value() * 10);
// m_ssbMod->configure(m_ssbMod->getInputMessageQueue(),
// ui->BW->value() * 100.0f,
// ui->lowCut->value() * 100.0f,
// ui->toneFrequency->value() * 10.0f,
// ui->volume->value() / 10.0f,
// m_spanLog2,
// ui->audioBinaural->isChecked(),
// ui->audioFlipChannels->isChecked(),
// ui->dsb->isChecked(),
// ui->audioMute->isChecked(),
// ui->playLoop->isChecked(),
// ui->agc->isChecked(),
// ui->agcOrder->value() / 100.0,
// m_agcTimeConstant[ui->agcTime->value()],
// ui->agcThreshold->value(),
// ui->agcThresholdGate->value(),
// ui->agcThresholdDelay->value() * 10);
}
}