EQ settings: Rework the settings to clean up the config file.
[maemo-rb.git] / lib / rbcodec / dsp / eq.h
blob9bb5f91ca50e1e995d807ad47d54aef8fdc1d58f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006-2007 Thom Johansen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
21 #ifndef _EQ_H
22 #define _EQ_H
24 /* => support from 3 to 32 bands */
25 #define EQ_NUM_BANDS 10
27 struct eq_band_setting
29 int cutoff; /* Hz */
30 int q;
31 int gain; /* +/- dB */
34 /** DSP interface **/
35 void dsp_set_eq_precut(int precut);
36 void dsp_set_eq_coefs(int band, const struct eq_band_setting *setting);
37 void dsp_eq_enable(bool enable);
39 #endif /* _EQ_H */