1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

UDP sink: implemented multicast join. Implements #610

This commit is contained in:
f4exb
2020-08-24 19:56:04 +02:00
parent 77051b87fd
commit 6d65bc74fc
9 changed files with 636 additions and 491 deletions
+17 -1
View File
@@ -162,7 +162,7 @@ UDPSourceGUI::UDPSourceGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
m_channelMarker.setBandwidth(16000);
m_channelMarker.setCenterFrequency(0);
m_channelMarker.setColor(m_settings.m_rgbColor);
m_channelMarker.setTitle("UDP Sample Sink");
m_channelMarker.setTitle("UDP Sample Source");
m_channelMarker.setSourceOrSinkStream(false);
m_channelMarker.blockSignals(false);
m_channelMarker.setVisible(true); // activate signal on the last setting only
@@ -257,6 +257,8 @@ void UDPSourceGUI::displaySettings()
ui->localUDPAddress->setText(m_settings.m_udpAddress);
ui->localUDPPort->setText(tr("%1").arg(m_settings.m_udpPort));
ui->multicastAddress->setText(m_settings.m_multicastAddress);
ui->multicastJoin->setChecked(m_settings.m_multicastJoin);
ui->applyBtn->setEnabled(false);
ui->applyBtn->setStyleSheet("QPushButton { background:rgb(79,79,79); }");
@@ -330,6 +332,20 @@ void UDPSourceGUI::on_localUDPPort_editingFinished()
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
}
void UDPSourceGUI::on_multicastAddress_editingFinished()
{
m_settings.m_multicastAddress = ui->multicastAddress->text();
ui->applyBtn->setEnabled(true);
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
}
void UDPSourceGUI::on_multicastJoin_toggled(bool checked)
{
m_settings.m_multicastJoin = checked;
ui->applyBtn->setEnabled(true);
ui->applyBtn->setStyleSheet("QPushButton { background-color : green; }");
}
void UDPSourceGUI::on_sampleRate_textEdited(const QString& arg1)
{
(void) arg1;