1 // -----------------------------------------------------------------------------
2 //
3 //  Copyright (C) 2006-2018 Fons Adriaensen <fons@linuxaudio.org>
4 //
5 //  This program is free software; you can redistribute it and/or modify
6 //  it under the terms of the GNU General Public License as published by
7 //  the Free Software Foundation; either version 2 of the License, or
8 //  (at your option) any later version.
9 //
10 //  This program is distributed in the hope that it will be useful,
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //  GNU General Public License for more details.
14 //
15 //  You should have received a copy of the GNU General Public License
16 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 //
18 // -----------------------------------------------------------------------------
19 
20 
21 #ifndef __ABCONFIG_H
22 #define __ABCONFIG_H
23 
24 
25 #include "bformat.h"
26 #include "impdata.h"
27 
28 
29 class ABconfig
30 {
31 public:
32 
33     ABconfig (void);
34 
35     void reset (void);
36     int save (const char *name);
37     int load (const char *name);
38     int openconvfile (void);
39     int closeconvfile (void);
40 
41     enum { EN_LFEQ = 1, EN_MATR = 2, EN_CONV = 4, EN_PMEQ = 8, EN_FORM = 16, EN_ALL = 31 };
42 
43     char            _copyright [64];
44     char            _descript [64];
45     char            _micident [64];
46     int             _update;
47     int             _enable;
48     float           _lffilt [3];
49     float           _matrix [4][4];
50     float           _hffilt [4][9];
51     float           _eqgain [4];
52     char            _convfile [1024];
53     Impdata         _convdata;
54 };
55 
56 
57 #endif
58