1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

SampleSourceFifo refactoring and Tx code reorganization

This commit is contained in:
f4exb
2019-11-15 01:04:24 +01:00
parent 246ff824af
commit 3b74153ec6
198 changed files with 13267 additions and 7750 deletions
@@ -28,11 +28,13 @@
#define HACKRF_BLOCKSIZE (1<<17)
class SampleSourceFifo;
class HackRFOutputThread : public QThread {
Q_OBJECT
public:
HackRFOutputThread(hackrf_device* dev, SampleSourceFifoDB* sampleFifo, QObject* parent = NULL);
HackRFOutputThread(hackrf_device* dev, SampleSourceFifo* sampleFifo, QObject* parent = nullptr);
~HackRFOutputThread();
void startWork();
@@ -47,7 +49,7 @@ private:
hackrf_device* m_dev;
qint8 m_buf[2*HACKRF_BLOCKSIZE];
SampleSourceFifoDB* m_sampleFifo;
SampleSourceFifo* m_sampleFifo;
unsigned int m_log2Interp;
int m_fcPos;
@@ -56,6 +58,7 @@ private:
void run();
void callback(qint8* buf, qint32 len);
void callbackPart(qint8* buf, SampleVector& data, unsigned int iBegin, unsigned int iEnd);
static int tx_callback(hackrf_transfer* transfer);
};