mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Corrected scaling on decimator by 32
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user