1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 15:34:57 -04:00

HackRF output plugin: corrected sample size

This commit is contained in:
f4exb
2017-01-08 13:04:06 +01:00
parent 212a8ad2f9
commit 64246c5c6a
3 changed files with 20 additions and 28 deletions
@@ -25,7 +25,7 @@
#include "dsp/samplesourcefifo.h"
#include "dsp/interpolators.h"
#define HACKRF_BLOCKSIZE (1<<17)
#define HACKRF_BLOCKSIZE (1<<18)
class HackRFOutputThread : public QThread {
Q_OBJECT
@@ -45,17 +45,16 @@ private:
bool m_running;
hackrf_device* m_dev;
qint16 m_buf[2*HACKRF_BLOCKSIZE];
SampleVector m_convertBuffer;
qint8 m_buf[2*HACKRF_BLOCKSIZE];
SampleSourceFifo* m_sampleFifo;
int m_samplerate;
unsigned int m_log2Interp;
Interpolators<qint16, SDR_SAMP_SZ, 12> m_interpolators;
Interpolators<qint8, SDR_SAMP_SZ, 8> m_interpolators;
void run();
void callback(qint16* buf, qint32 len);
void callback(qint8* buf, qint32 len);
static int tx_callback(hackrf_transfer* transfer);
};