mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
UDPSink plugin: added UDP handler
This commit is contained in:
parent
d660a5b017
commit
ff9eb18a4f
@ -39,8 +39,8 @@ UDPSrc::UDPSrc(MessageQueue* uiMessageQueue, UDPSrcGUI* udpSrcGUI, BasebandSampl
|
||||
{
|
||||
setObjectName("UDPSrc");
|
||||
|
||||
m_udpBuffer = new UDPSink<Sample>(this, udpBLockSampleSize, m_udpPort);
|
||||
m_udpBufferMono = new UDPSink<FixReal>(this, udpBLockSampleSize, m_udpPort);
|
||||
m_udpBuffer = new UDPSink<Sample>(this, udpBlockSize, m_udpPort);
|
||||
m_udpBufferMono = new UDPSink<FixReal>(this, udpBlockSize, m_udpPort);
|
||||
m_audioSocket = new QUdpSocket(this);
|
||||
m_udpAudioBuf = new char[m_udpAudioPayloadSize];
|
||||
|
||||
@ -67,7 +67,7 @@ UDPSrc::UDPSrc(MessageQueue* uiMessageQueue, UDPSrcGUI* udpSrcGUI, BasebandSampl
|
||||
m_scale = 0;
|
||||
m_boost = 0;
|
||||
m_magsq = 0;
|
||||
UDPFilter = new fftfilt(0.0, (m_rfBandwidth / 2.0) / m_outputSampleRate, udpBLockSampleSize);
|
||||
UDPFilter = new fftfilt(0.0, (m_rfBandwidth / 2.0) / m_outputSampleRate, udpBlockSize);
|
||||
|
||||
m_phaseDiscri.setFMScaling((float) m_outputSampleRate / (2.0f * m_fmDeviation));
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
virtual void stop();
|
||||
virtual bool handleMessage(const Message& cmd);
|
||||
|
||||
static const int udpBLockSampleSize = 512; // UDP block size in number of samples
|
||||
static const int udpBlockSize = 512; // UDP block size in number of bytes
|
||||
|
||||
public slots:
|
||||
void audioReadyRead();
|
||||
|
@ -4,12 +4,14 @@ set(udpsink_SOURCES
|
||||
udpsink.cpp
|
||||
udpsinkgui.cpp
|
||||
udpsinkplugin.cpp
|
||||
udpsinkudphandler.cpp
|
||||
)
|
||||
|
||||
set(udpsink_HEADERS
|
||||
udpsink.h
|
||||
udpsinkgui.h
|
||||
udpsinkplugin.h
|
||||
udpsinkudphandler.h
|
||||
)
|
||||
|
||||
set(udpsink_FORMS
|
||||
|
Loading…
Reference in New Issue
Block a user