comparison dsp/signalconditioning/Filter.h @ 225:49844bc8a895

* Queen Mary C++ DSP library
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 05 Apr 2006 17:35:59 +0000
parents
children e5907ae6de17
comparison
equal deleted inserted replaced
-1:000000000000 225:49844bc8a895
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 QM DSP Library
5
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2005-2006 Christian Landone.
8 All rights reserved.
9 */
10
11 #ifndef FILTER_H
12 #define FILTER_H
13
14 #ifndef NULL
15 #define NULL 0
16 #endif
17
18 struct FilterConfig{
19 unsigned int ord;
20 double* ACoeffs;
21 double* BCoeffs;
22 };
23
24 class Filter
25 {
26 public:
27 Filter( FilterConfig Config );
28 virtual ~Filter();
29
30 void reset();
31
32 void process( double *src, double *dst, unsigned int length );
33
34
35 private:
36 void initialise( FilterConfig Config );
37 void deInitialise();
38
39 unsigned int m_ord;
40
41 double* m_inBuffer;
42 double* m_outBuffer;
43
44 double* m_ACoeffs;
45 double* m_BCoeffs;
46 };
47
48 #endif