1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

SDRdaemon plugin: get throttle interval from the timer. Removed useless chunk size attrubute

This commit is contained in:
Edouard Griffiths 2016-03-16 18:26:44 +01:00
parent 87a53f03a2
commit 8a44f5c089
2 changed files with 1 additions and 7 deletions

View File

@ -33,7 +33,6 @@ SDRdaemonUDPHandler::SDRdaemonUDPHandler(SampleFifo *sampleFifo, MessageQueue *o
m_dataConnected(false), m_dataConnected(false),
m_udpBuf(0), m_udpBuf(0),
m_udpReadBytes(0), m_udpReadBytes(0),
m_chunksize(0),
m_sampleFifo(sampleFifo), m_sampleFifo(sampleFifo),
m_samplerate(0), m_samplerate(0),
m_centerFrequency(0), m_centerFrequency(0),
@ -188,17 +187,13 @@ void SDRdaemonUDPHandler::setSamplerate(uint32_t samplerate)
<< " old:" << m_samplerate; << " old:" << m_samplerate;
m_samplerate = samplerate; m_samplerate = samplerate;
m_chunksize = (m_samplerate / m_rateDivider) * SDRdaemonBuffer::m_iqSampleSize;
qDebug() << "SDRdaemonUDPHandler::setSamplerate:"
<< " chunk size: " << m_chunksize
<< " #samples per chunk: " << (m_chunksize/SDRdaemonBuffer::m_iqSampleSize);
} }
void SDRdaemonUDPHandler::connectTimer(const QTimer* timer) void SDRdaemonUDPHandler::connectTimer(const QTimer* timer)
{ {
qDebug() << "SDRdaemonUDPHandler::connectTimer"; qDebug() << "SDRdaemonUDPHandler::connectTimer";
m_timer = timer; m_timer = timer;
m_throttlems = timer->interval();
connect(timer, SIGNAL(timeout()), this, SLOT(tick())); connect(timer, SIGNAL(timeout()), this, SLOT(tick()));
} }

View File

@ -53,7 +53,6 @@ private:
bool m_dataConnected; bool m_dataConnected;
char *m_udpBuf; char *m_udpBuf;
qint64 m_udpReadBytes; qint64 m_udpReadBytes;
std::size_t m_chunksize;
SampleFifo *m_sampleFifo; SampleFifo *m_sampleFifo;
uint32_t m_samplerate; uint32_t m_samplerate;
uint32_t m_centerFrequency; uint32_t m_centerFrequency;