SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <remoteoutputthread.h>
Inherits QThread.
Public Member Functions | |
RemoteOutputThread (SampleSourceFifo *sampleFifo, QObject *parent=0) | |
~RemoteOutputThread () | |
void | startWork () |
void | stopWork () |
void | setSamplerate (int samplerate) |
void | setNbBlocksFEC (uint32_t nbBlocksFEC) |
void | setTxDelay (float txDelay) |
void | setDataAddress (const QString &address, uint16_t port) |
bool | isRunning () const |
uint32_t | getSamplesCount (uint64_t &ts_usecs) const |
void | setSamplesCount (int samplesCount) |
void | setChunkCorrection (int chunkCorrection) |
void | connectTimer (const QTimer &timer) |
Private Slots | |
void | tick () |
Private Member Functions | |
void | run () |
Private Attributes | |
QMutex | m_startWaitMutex |
QWaitCondition | m_startWaiter |
volatile bool | m_running |
int | m_samplesChunkSize |
SampleSourceFifo * | m_sampleFifo |
uint32_t | m_samplesCount |
int | m_chunkCorrection |
int | m_samplerate |
int | m_throttlems |
int | m_maxThrottlems |
QElapsedTimer | m_elapsedTimer |
bool | m_throttleToggle |
UDPSinkFEC | m_udpSinkFEC |
Definition at line 42 of file remoteoutputthread.h.
RemoteOutputThread::RemoteOutputThread | ( | SampleSourceFifo * | sampleFifo, |
QObject * | parent = 0 |
||
) |
Definition at line 28 of file remoteoutputthread.cpp.
RemoteOutputThread::~RemoteOutputThread | ( | ) |
Definition at line 42 of file remoteoutputthread.cpp.
References m_running, and stopWork().
void RemoteOutputThread::connectTimer | ( | const QTimer & | timer | ) |
Definition at line 114 of file remoteoutputthread.cpp.
References tick().
Referenced by setChunkCorrection(), and RemoteOutput::start().
Definition at line 144 of file remoteoutputthread.cpp.
References m_samplesCount, and TimeUtil::nowus().
Referenced by RemoteOutput::analyzeApiReply(), isRunning(), and RemoteOutput::webapiFormatDeviceReport().
|
inline |
Definition at line 57 of file remoteoutputthread.h.
References getSamplesCount(), and m_running.
|
private |
|
inline |
Definition at line 61 of file remoteoutputthread.h.
References connectTimer(), and m_chunkCorrection.
Referenced by RemoteOutput::handleMessage().
|
inline |
Definition at line 55 of file remoteoutputthread.h.
References m_udpSinkFEC, and UDPSinkFEC::setRemoteAddress().
Referenced by RemoteOutput::applySettings(), and RemoteOutput::start().
|
inline |
Definition at line 53 of file remoteoutputthread.h.
References m_udpSinkFEC, and UDPSinkFEC::setNbBlocksFEC().
Referenced by RemoteOutput::applySettings(), and RemoteOutput::start().
void RemoteOutputThread::setSamplerate | ( | int | samplerate | ) |
Definition at line 70 of file remoteoutputthread.cpp.
References m_running, m_sampleFifo, m_samplerate, m_samplesChunkSize, m_throttlems, m_udpSinkFEC, SampleSourceFifo::resize(), UDPSinkFEC::setSampleRate(), startWork(), and stopWork().
Referenced by RemoteOutput::applySettings(), and RemoteOutput::start().
|
inline |
|
inline |
Definition at line 54 of file remoteoutputthread.h.
References m_udpSinkFEC, and UDPSinkFEC::setTxDelay().
Referenced by RemoteOutput::applySettings(), and RemoteOutput::start().
void RemoteOutputThread::startWork | ( | ) |
Definition at line 49 of file remoteoutputthread.cpp.
References m_elapsedTimer, m_maxThrottlems, m_running, m_startWaiter, m_startWaitMutex, m_udpSinkFEC, and UDPSinkFEC::start().
Referenced by RemoteOutput::handleMessage(), setSamplerate(), and RemoteOutput::start().
void RemoteOutputThread::stopWork | ( | ) |
Definition at line 62 of file remoteoutputthread.cpp.
References m_running, m_udpSinkFEC, and UDPSinkFEC::stop().
Referenced by RemoteOutput::handleMessage(), setSamplerate(), RemoteOutput::stop(), and ~RemoteOutputThread().
|
privateslot |
Definition at line 120 of file remoteoutputthread.cpp.
References m_chunkCorrection, m_elapsedTimer, m_running, m_sampleFifo, m_samplerate, m_samplesChunkSize, m_samplesCount, m_throttlems, m_throttleToggle, m_udpSinkFEC, SampleSourceFifo::readAdvance(), and UDPSinkFEC::write().
Referenced by connectTimer().
|
private |
Definition at line 73 of file remoteoutputthread.h.
Referenced by setChunkCorrection(), and tick().
|
private |
Definition at line 78 of file remoteoutputthread.h.
Referenced by startWork(), and tick().
|
private |
Definition at line 77 of file remoteoutputthread.h.
Referenced by startWork().
|
private |
Definition at line 68 of file remoteoutputthread.h.
Referenced by isRunning(), run(), setSamplerate(), startWork(), stopWork(), tick(), and ~RemoteOutputThread().
|
private |
Definition at line 71 of file remoteoutputthread.h.
Referenced by setSamplerate(), and tick().
|
private |
Definition at line 75 of file remoteoutputthread.h.
Referenced by setSamplerate(), and tick().
|
private |
Definition at line 70 of file remoteoutputthread.h.
Referenced by setSamplerate(), and tick().
|
private |
Definition at line 72 of file remoteoutputthread.h.
Referenced by getSamplesCount(), setSamplesCount(), and tick().
|
private |
Definition at line 67 of file remoteoutputthread.h.
Referenced by run(), and startWork().
|
private |
Definition at line 66 of file remoteoutputthread.h.
Referenced by startWork().
|
private |
Definition at line 76 of file remoteoutputthread.h.
Referenced by setSamplerate(), and tick().
|
private |
Definition at line 79 of file remoteoutputthread.h.
Referenced by tick().
|
private |
Definition at line 81 of file remoteoutputthread.h.
Referenced by setDataAddress(), setNbBlocksFEC(), setSamplerate(), setTxDelay(), startWork(), stopWork(), and tick().