# HG changeset patch # User Carl Bussey # Date 1409836323 -3600 # Node ID c8dd1049b2d37bcaa3da0bf291e3bb42ae5aa0db # Parent 36cffe6493e419a5d1cabaa274f5e3aa931a2ce1 * FIRFilter::process now returns N+M-1 samples, rather than IFFT length as before. diff -r 36cffe6493e4 -r c8dd1049b2d3 FIRFilter.cpp --- a/FIRFilter.cpp Wed Sep 03 13:50:02 2014 +0100 +++ b/FIRFilter.cpp Thu Sep 04 14:12:03 2014 +0100 @@ -80,7 +80,7 @@ //copy to output int offset = 0; int outputLength = m_lengthInput; - if (outputType == all) outputLength = (int)m_lengthFIRFFT; + if (outputType == all) outputLength = m_lengthInput+m_numberOfCoefficients-1; else if (outputType == middle) offset = floor(m_numberOfCoefficients/2.0f); else if (outputType != first) cerr << "FIRFilter::process(params) - " << outputType << " is not a valid argument. outputType is set to first." << endl;