mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-14 12:22:00 -05:00
UDP source: save channel marker center frequency in only one slot
This commit is contained in:
parent
70de05f060
commit
7ae5c2a6d6
@ -99,7 +99,6 @@ QByteArray UDPSrcGUI::serialize() const
|
|||||||
s.writeS32(6, m_channelMarker.getUDPSendPort());
|
s.writeS32(6, m_channelMarker.getUDPSendPort());
|
||||||
s.writeBlob(7, ui->spectrumGUI->serialize());
|
s.writeBlob(7, ui->spectrumGUI->serialize());
|
||||||
s.writeS32(8, ui->gain->value());
|
s.writeS32(8, ui->gain->value());
|
||||||
s.writeS32(9, m_channelMarker.getCenterFrequency());
|
|
||||||
s.writeString(10, m_channelMarker.getUDPAddress());
|
s.writeString(10, m_channelMarker.getUDPAddress());
|
||||||
s.writeBool(11, m_audioActive);
|
s.writeBool(11, m_audioActive);
|
||||||
s.writeS32(12, (qint32)m_volume);
|
s.writeS32(12, (qint32)m_volume);
|
||||||
@ -188,8 +187,6 @@ bool UDPSrcGUI::deserialize(const QByteArray& data)
|
|||||||
d.readS32(8, &s32tmp, 10);
|
d.readS32(8, &s32tmp, 10);
|
||||||
ui->gain->setValue(s32tmp);
|
ui->gain->setValue(s32tmp);
|
||||||
ui->gainText->setText(tr("%1").arg(s32tmp/10.0, 0, 'f', 1));
|
ui->gainText->setText(tr("%1").arg(s32tmp/10.0, 0, 'f', 1));
|
||||||
d.readS32(9, &s32tmp, 0);
|
|
||||||
m_channelMarker.setCenterFrequency(s32tmp);
|
|
||||||
d.readString(10, &strtmp, "127.0.0.1");
|
d.readString(10, &strtmp, "127.0.0.1");
|
||||||
m_channelMarker.setUDPAddress(strtmp);
|
m_channelMarker.setUDPAddress(strtmp);
|
||||||
d.readBool(11, &booltmp, false);
|
d.readBool(11, &booltmp, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user