qm-dsp 1.8
Filter.h
Go to the documentation of this file.
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 2005-2006 Christian Landone.
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information.
14*/
15
16#ifndef FILTER_H
17#define FILTER_H
18
19#ifndef NULL
20#define NULL 0
21#endif
22
30 unsigned int ord;
31 double* ACoeffs;
32 double* BCoeffs;
33};
34
38class Filter
39{
40public:
41 Filter( FilterConfig Config );
42 virtual ~Filter();
43
44 void reset();
45
46 void process( double *src, double *dst, unsigned int length );
47
48private:
49 void initialise( FilterConfig Config );
50 void deInitialise();
51
52 unsigned int m_ord;
53
54 double* m_inBuffer;
55 double* m_outBuffer;
56
57 double* m_ACoeffs;
58 double* m_BCoeffs;
59};
60
61#endif
Digital filter specified through FilterConfig structure.
Definition Filter.h:39
void deInitialise()
Definition Filter.cpp:48
double * m_ACoeffs
Definition Filter.h:57
virtual ~Filter()
Definition Filter.cpp:31
double * m_inBuffer
Definition Filter.h:54
void process(double *src, double *dst, unsigned int length)
Definition Filter.cpp:60
void initialise(FilterConfig Config)
Definition Filter.cpp:36
double * m_outBuffer
Definition Filter.h:55
unsigned int m_ord
Definition Filter.h:52
void reset()
Definition Filter.cpp:54
double * m_BCoeffs
Definition Filter.h:58
Filter specification.
Definition Filter.h:29
double * ACoeffs
Definition Filter.h:31
unsigned int ord
Definition Filter.h:30
double * BCoeffs
Definition Filter.h:32