mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 11:17:11 +01:00
Merge pull request #18 from howard0su/fil
cleanup DecimatingFIRFilter code
This commit is contained in:
commit
407fcaadc6
@ -185,11 +185,11 @@ namespace dsp {
|
|||||||
if (i < t) {
|
if (i < t) {
|
||||||
outBuf[id].i += tap * delayBuf[delayOff + i].i;
|
outBuf[id].i += tap * delayBuf[delayOff + i].i;
|
||||||
outBuf[id].q += tap * delayBuf[delayOff + i].q;
|
outBuf[id].q += tap * delayBuf[delayOff + i].q;
|
||||||
id++;
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
outBuf[id].i += tap * inBuf[i - t].i;
|
outBuf[id].i += tap * inBuf[i - t].i;
|
||||||
outBuf[id].q += tap * inBuf[i - t].q;
|
outBuf[id].q += tap * inBuf[i - t].q;
|
||||||
|
}
|
||||||
id++;
|
id++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user