31 m_samplesChunkSize(0),
32 m_sampleFifo(sampleFifo),
38 m_throttleToggle(false)
51 qDebug() <<
"RemoteOutputThread::startWork: ";
64 qDebug() <<
"RemoteOutputThread::stopWork";
74 qDebug() <<
"RemoteOutputThread::setSamplerate:" 75 <<
" new:" << samplerate
78 bool wasRunning =
false;
91 m_samplerate = samplerate;
116 qDebug() <<
"RemoteOutputThread::connectTimer";
117 connect(&timer, SIGNAL(timeout()),
this, SLOT(
tick()));
134 SampleVector::iterator readUntil;
uint32_t getSamplesCount(uint64_t &ts_usecs) const
void setSamplerate(int samplerate)
void write(const SampleVector::iterator &begin, uint32_t sampleChunkSize)
void readAdvance(SampleVector::iterator &readUntil, unsigned int nbSamples)
SampleSourceFifo * m_sampleFifo
void resize(uint32_t size)
static uint64_t nowus()
returns the current epoch in microseconds
QWaitCondition m_startWaiter
#define REMOTEOUTPUT_THROTTLE_MS
QElapsedTimer m_elapsedTimer
RemoteOutputThread(SampleSourceFifo *sampleFifo, QObject *parent=0)
void connectTimer(const QTimer &timer)
void setSampleRate(uint32_t sampleRate)
unsigned __int64 uint64_t