1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-04 16:01:14 -05:00

UDPSink plugin: added UDP handler

This commit is contained in:
f4exb 2017-08-15 16:08:12 +02:00
parent d660a5b017
commit ff9eb18a4f
3 changed files with 6 additions and 4 deletions

View File

@ -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));

View File

@ -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();

View File

@ -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