mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-06 03:36:40 -04:00
UDP Source: change UDP port and Audio port accordingly
This commit is contained in:
parent
c1f1c741f1
commit
3f5d88b48d
@ -285,7 +285,15 @@ bool UDPSrc::handleMessage(const Message& cmd)
|
|||||||
{
|
{
|
||||||
m_udpPort = cfg.getUDPPort();
|
m_udpPort = cfg.getUDPPort();
|
||||||
|
|
||||||
if (!m_audioSocket->bind(QHostAddress::Any, m_udpPort-1))
|
disconnect(m_audioSocket, SIGNAL(readyRead()), this, SLOT(audioReadyRead()));
|
||||||
|
delete m_audioSocket;
|
||||||
|
m_audioSocket = new QUdpSocket(this);
|
||||||
|
|
||||||
|
if (m_audioSocket->bind(QHostAddress::Any, m_udpPort-1))
|
||||||
|
{
|
||||||
|
connect(m_audioSocket, SIGNAL(readyRead()), this, SLOT(audioReadyRead()));
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
qWarning("UDPSrc::handleMessage: cannot bind audio socket");
|
qWarning("UDPSrc::handleMessage: cannot bind audio socket");
|
||||||
}
|
}
|
||||||
|
@ -319,7 +319,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="audioPortlabel">
|
<widget class="QLabel" name="audioPortlabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Audio</string>
|
<string>Audio on</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -334,14 +334,17 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="audioPort">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="toolTip">
|
<property name="orientation">
|
||||||
<string>Audio input port</string>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="sizeHint" stdset="0">
|
||||||
<string>9998</string>
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user