changeset 35:c8dd1049b2d3

* FIRFilter::process now returns N+M-1 samples, rather than IFFT length as before.
author Carl Bussey <c.bussey@se10.qmul.ac.uk>
date Thu, 04 Sep 2014 14:12:03 +0100
parents 36cffe6493e4
children 4010960c659e
files FIRFilter.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;