Add the viewport functions to the screens API, including a new getfont() function...
[Rockbox.git] / firmware / export / sound.h
blob5933f4cc75065c17d786494e0d211c4bc01b008b
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 #ifdef HAVE_WM8758
45 void sound_set_bass_cutoff(int value);
46 void sound_set_treble_cutoff(int value);
47 #endif
48 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
49 void sound_set_loudness(int value);
50 void sound_set_avc(int value);
51 void sound_set_mdb_strength(int value);
52 void sound_set_mdb_harmonics(int value);
53 void sound_set_mdb_center(int value);
54 void sound_set_mdb_shape(int value);
55 void sound_set_mdb_enable(int value);
56 void sound_set_superbass(int value);
57 #endif /* (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) */
59 void sound_set(int setting, int value);
60 int sound_val2phys(int setting, int value);
62 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
63 void sound_set_pitch(int permille);
64 int sound_get_pitch(void);
65 #endif
67 #endif