1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Deep redesign: Changed Funcube read block from 8192 to 2048 bytes to fix fluidity problem

This commit is contained in:
f4exb
2015-08-27 08:31:02 +02:00
parent 30b51b5888
commit f4f9a74269
8 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -20,13 +20,13 @@
#include "rtlsdrthread.h"
#include "dsp/samplefifo.h"
#define BLOCKSIZE 16384
#define FCD_BLOCKSIZE 16384
RTLSDRThread::RTLSDRThread(rtlsdr_dev_t* dev, SampleFifo* sampleFifo, QObject* parent) :
QThread(parent),
m_running(false),
m_dev(dev),
m_convertBuffer(BLOCKSIZE),
m_convertBuffer(FCD_BLOCKSIZE),
m_sampleFifo(sampleFifo),
m_samplerate(288000),
m_log2Decim(4)
@@ -71,7 +71,7 @@ void RTLSDRThread::run()
m_startWaiter.wakeAll();
while(m_running) {
if((res = rtlsdr_read_async(m_dev, &RTLSDRThread::callbackHelper, this, 32, BLOCKSIZE)) < 0) {
if((res = rtlsdr_read_async(m_dev, &RTLSDRThread::callbackHelper, this, 32, FCD_BLOCKSIZE)) < 0) {
qCritical("RTLSDRThread: async error: %s", strerror(errno));
break;
}