Go to the documentation of this file.
38 #ifndef __JACKTRIPWORKER_H__
39 #define __JACKTRIPWORKER_H__
43 #include <QThreadPool>
46 #include <QHostAddress>
87 QString client_address,
91 bool connectDefaultAudioPorts
103 { std::cout <<
"--- JackTripWorker TEST SLOT ---" << std::endl; }
111 int setJackTripFromClientHeader(
JackTrip& jacktrip);
116 QString mClientAddress;
118 bool m_connectDefaultAudioPorts;
125 volatile bool mSpawning;
128 int mBufferQueueLength;
139 #endif //__JACKTRIPWORKER_H__
@ WAVETABLE
Loops on the last received packet.
Definition: JackTrip.h:91
int getID()
Definition: JackTripWorker.h:95
JackTripWorker(UdpHubListener *udpmasterlistener, int BufferQueueLength=gDefaultQueueLength, JackTrip::underrunModeT UnderRunMode=JackTrip::WAVETABLE)
The class constructor.
Definition: JackTripWorker.cpp:61
quint16 uint16_t
Typedef for unsigned short. This type is guaranteed to be 16-bit.
Definition: jacktrip_types.h:71
Hub UDP listener on the Server.
Definition: UdpHubListener.h:69
Main class to creates a SERVER (to listen) or a CLIENT (to connect to a listening server) to send aud...
Definition: JackTrip.h:68
bool isSpawning()
Check if the Thread is Spawning.
Definition: JackTripWorker.cpp:328
void setJackTrip(int id, QString client_address, uint16_t server_port, uint16_t client_port, int num_channels, bool connectDefaultAudioPorts)
Sets the JackTripWorker properties.
Definition: JackTripWorker.cpp:88
Prototype of the worker class that will be cloned through sending threads to the Thread Pool.
Definition: JackTripWorker.h:68
underrunModeT
Enum for the JackTrip Underrun Mode, when packets.
Definition: JackTrip.h:90
virtual ~JackTripWorker()
The class destructor.
Definition: JackTripWorker.cpp:81
connectionModeT
Enum for Connection Mode (in packet header)
Definition: JackTrip.h:102
void run()
Implements the Thread Loop. To start the thread, call start() ( DO NOT CALL run() ).
Definition: JackTripWorker.cpp:111
void stopThread()
Stop and remove thread from pool.
Definition: JackTripWorker.cpp:336
void signalRemoveThread()
Definition: moc_JackTripWorker.cpp:140
const int gDefaultQueueLength
Definition: jacktrip_globals.h:86