
Hugo Duncan wrote:
Let me see if I understand. You want the delay buffer to use the cache_size parameter if it is specified, and if not, check to see if the coefficients parameter is specified, and if so, use the size of the coefficients array. This is possible.
[cut proposed solution]
Thanks Eric, that would probably work (as long as I define the coefficients named paramter seperately from the filter or the delay).
Ideally, though, I was looking for a solution that allowed me to reuse the delay buffer without modifying it. That way it could be used as a lower layer for any algorithm that needed recent time history. Maybe I am being over ambitious...
The coupling of the cache_size and the coefficients parameters has to be expressed in code somewhere. Where do you suggest? -- Eric Niebler Boost Consulting www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com