kopia lustrzana https://github.com/f4exb/sdrangel
UDP Source: change UDP port and Audio port accordingly
rodzic
c1f1c741f1
commit
3f5d88b48d
|
@ -285,7 +285,15 @@ bool UDPSrc::handleMessage(const Message& cmd)
|
|||
{
|
||||
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");
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="audioPortlabel">
|
||||
<property name="text">
|
||||
<string>Audio</string>
|
||||
<string>Audio on</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -334,14 +334,17 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="audioPort">
|
||||
<property name="toolTip">
|
||||
<string>Audio input port</string>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>9998</string>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
|
Ładowanie…
Reference in New Issue