Cleanup the C200 keymap a bit, fixes the time settings screen for now.
[Rockbox.git] / firmware / export / sound.h
blob929b83b9e6633eef87bb28709cdd7e1160d040ff
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
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 SOUND_H
20 #define SOUND_H
22 #include <inttypes.h>
23 #include <audiohw.h>
25 extern void audiohw_postinit(void);
27 typedef void sound_set_type(int value);
29 const char *sound_unit(int setting);
30 int sound_numdecimals(int setting);
31 int sound_steps(int setting);
32 int sound_min(int setting);
33 int sound_max(int setting);
34 int sound_default(int setting);
35 sound_set_type* sound_get_fn(int setting);
37 void sound_set_dsp_callback(int (*func)(int, intptr_t));
38 void sound_set_volume(int value);
39 void sound_set_balance(int value);
40 void sound_set_bass(int value);
41 void sound_set_treble(int value);
42 void sound_set_channels(int value);
43 void sound_set_stereo_width(int value);
44 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
45 void sound_set_loudness(int value);
46 void sound_set_avc(int value);
47 void sound_set_mdb_strength(int value);
48 void sound_set_mdb_harmonics(int value);
49 void sound_set_mdb_center(int value);
50 void sound_set_mdb_shape(int value);
51 void sound_set_mdb_enable(int value);
52 void sound_set_superbass(int value);
53 #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
55 void sound_set(int setting, int value);
56 int sound_val2phys(int setting, int value);
58 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
59 void sound_set_pitch(int permille);
60 int sound_get_pitch(void);
61 #endif
63 #endif