mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Corrected scaling on decimator by 32
This commit is contained in:
parent
d9a1e7942f
commit
ee49caaf55
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user