Add the thread state check into test_codec as used in mpegplayer which makes it shoul...
[Rockbox.git] / apps / menus / eq_menu.h
blobb101ff36ed031a81698d18af272ccb81453a64d8
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: eq_menu.h 10888 2006-09-05 11:48:17Z dan $
10 * Copyright (C) 2006 Dan Everton
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _EQ_MENU_H
20 #define _EQ_MENU_H
22 #include "menu.h"
23 #include "config.h"
24 /* Various user interface limits and sizes */
25 #define EQ_CUTOFF_MIN 20
26 #define EQ_CUTOFF_MAX 22040
27 #define EQ_CUTOFF_STEP 10
28 #define EQ_CUTOFF_FAST_STEP 100
29 #define EQ_GAIN_MIN (-240)
30 #define EQ_GAIN_MAX 240
31 #define EQ_GAIN_STEP 5
32 #define EQ_GAIN_FAST_STEP 10
33 #define EQ_Q_MIN 5
34 #define EQ_Q_MAX 64
35 #define EQ_Q_STEP 1
36 #define EQ_Q_FAST_STEP 10
38 #define EQ_USER_DIVISOR 10
40 bool eq_browse_presets(void);
41 bool eq_menu_graphical(void);
43 /* utility functions for settings_list.c */
44 void eq_gain_format(char* buffer, size_t buffer_size, int value, const char* unit);
45 void eq_q_format(char* buffer, size_t buffer_size, int value, const char* unit);
46 void eq_precut_format(char* buffer, size_t buffer_size, int value, const char* unit);
47 #ifdef HAVE_WM8758
48 void eq_hw_gain_format(char* buffer, size_t buffer_size, int value,
49 const char* unit);
50 /* WM8758 equalizer supports -12 to +12 dB gain in 1 dB increments. */
51 #define EQ_HW_GAIN_STEP 1
52 #define EQ_HW_GAIN_MIN -12
53 #define EQ_HW_GAIN_MAX 12
55 bool eq_hw_menu(void);
56 void eq_hw_enable(bool enable);
57 #endif
59 #endif