changeset 40:14e0bbb06a9a

Comment
author Chris Cannam
date Thu, 01 Oct 2015 12:07:13 +0100
parents bfd9acbcfd7c
children 6daf77dab8a4
files src/Filter.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Filter.cpp	Thu Oct 01 11:51:54 2015 +0100
+++ b/src/Filter.cpp	Thu Oct 01 12:07:13 2015 +0100
@@ -27,6 +27,13 @@
     m_sz = int(params.b.size());
     m_order = m_sz - 1;
 
+    // We keep some empty space at the start of the buffer, and
+    // encroach gradually into it as we add individual sample
+    // calculations at the start. Then when we run out of space, we
+    // move the buffer back to the end and begin again. This is
+    // significantly faster than moving the whole buffer along in
+    // 1-sample steps every time.
+    
     m_offmax = 20;
     m_offa = m_offmax;
     m_offb = m_offmax;