Corrected scaling on decimator by 32

This commit is contained in:
f4exb 2015-06-10 03:26:06 +02:00
parent d9a1e7942f
commit ee49caaf55
2 changed files with 3 additions and 3 deletions

View File

@ -192,8 +192,8 @@ void BladerfThread::decimate32(SampleVector::iterator* it, const qint16* buf, qi
for (int pos = 0; pos < len - 63; ) {
for (int i = 0; i < 8; i++) {
xreal[i] = (buf[pos+0] - buf[pos+3] + buf[pos+7] - buf[pos+4]) << 1;
yimag[i] = (buf[pos+1] - buf[pos+5] + buf[pos+2] - buf[pos+6]) << 1;
xreal[i] = (buf[pos+0] - buf[pos+3] + buf[pos+7] - buf[pos+4]) << 2;
yimag[i] = (buf[pos+1] - buf[pos+5] + buf[pos+2] - buf[pos+6]) << 2;
pos += 8;
}

View File

@ -24,7 +24,7 @@
#include "dsp/samplefifo.h"
#include "dsp/inthalfbandfilter.h"
#define BLADERF_BLOCKSIZE 16384
#define BLADERF_BLOCKSIZE (1<<14)
class BladerfThread : public QThread {
Q_OBJECT