19 #ifndef INCLUDE_UTIL_UDPSINK_H_ 20 #define INCLUDE_UTIL_UDPSINK_H_ 25 #include <QHostAddress> 45 UDPSinkUtil(QObject *parent,
unsigned int udpSize,
unsigned int port) :
57 UDPSinkUtil (QObject *parent,
unsigned int udpSize, QHostAddress& address,
unsigned int port) :
85 m_address.setAddress(const_cast<QString&>(address));
102 m_sampleBuffer[0] = sample;
110 void write(T *samples,
int nbSamples)
112 int samplesIndex = 0;
120 m_sampleBufferIndex = 0;
void setDestination(const QString &address, int port)
void write(T *samples, int nbSamples)
UDPSinkUtil(QObject *parent, unsigned int udpSize, unsigned int port)
void setPort(unsigned int port)
void setAddress(QString &address)
void moveToThread(QThread *thread)
UDPSinkUtil(QObject *parent, unsigned int udpSize)
UDPSinkUtil(QObject *parent, unsigned int udpSize, QHostAddress &address, unsigned int port)