qm-dsp
1.8
|
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ 00002 00003 /* 00004 QM DSP Library 00005 00006 Centre for Digital Music, Queen Mary, University of London. 00007 This file 2005-2006 Christian Landone. 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License as 00011 published by the Free Software Foundation; either version 2 of the 00012 License, or (at your option) any later version. See the file 00013 COPYING included with this distribution for more information. 00014 */ 00015 00016 #ifndef FILTFILT_H 00017 #define FILTFILT_H 00018 00019 #include "Filter.h" 00020 00026 class FiltFilt 00027 { 00028 public: 00029 FiltFilt( FilterConfig Config ); 00030 virtual ~FiltFilt(); 00031 00032 void reset(); 00033 void process( double* src, double* dst, unsigned int length ); 00034 00035 private: 00036 void initialise( FilterConfig Config ); 00037 void deInitialise(); 00038 00039 unsigned int m_ord; 00040 00041 Filter* m_filter; 00042 00043 double* m_filtScratchIn; 00044 double* m_filtScratchOut; 00045 00046 FilterConfig m_filterConfig; 00047 }; 00048 00049 #endif