Merge pull request #18 from howard0su/fil

cleanup DecimatingFIRFilter code
This commit is contained in:
AlexandreRouma 2020-09-06 16:43:05 +03:00 committed by GitHub
commit 407fcaadc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,11 +185,11 @@ namespace dsp {
if (i < t) {
outBuf[id].i += tap * delayBuf[delayOff + i].i;
outBuf[id].q += tap * delayBuf[delayOff + i].q;
id++;
continue;
}
outBuf[id].i += tap * inBuf[i - t].i;
outBuf[id].q += tap * inBuf[i - t].q;
else {
outBuf[id].i += tap * inBuf[i - t].i;
outBuf[id].q += tap * inBuf[i - t].q;
}
id++;
}
}