diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-02-26 00:41:26 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-02-26 00:41:26 +0000 |
commit | a7fabf0741c91fb0a2c28b2d8357bcc4630300af (patch) | |
tree | e1528a67f63933aa23ebb7b5d809e1ce7e60b589 /apps/dsp.h | |
parent | 1915c1099431294ca9c43bc11fb1bfa41bbd83cc (diff) | |
download | rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.tar.gz rockbox-a7fabf0741c91fb0a2c28b2d8357bcc4630300af.zip |
Add software based bass/treble controls for targets which have no such functionality in hardware (currently only X5). They can also be used on any other SWCODEC target by adding #define HAVE_SW_TONE_CONTROLS in the relevant config-*.h file. Also remove some now unneeded zero checks when using get_replaygain_int(). Comments on sound quality are welcome as some parameters can still be fine-tuned.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.h')
-rw-r--r-- | apps/dsp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dsp.h b/apps/dsp.h index 63dc68cbb4..03118e8c31 100644 --- a/apps/dsp.h +++ b/apps/dsp.h | |||
@@ -51,6 +51,12 @@ enum | |||
51 | DSP_CROSSFEED | 51 | DSP_CROSSFEED |
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum { | ||
55 | DSP_CALLBACK_SET_PRESCALE = 0, | ||
56 | DSP_CALLBACK_SET_BASS, | ||
57 | DSP_CALLBACK_SET_TREBLE | ||
58 | }; | ||
59 | |||
54 | /* A bunch of fixed point assembler helper macros */ | 60 | /* A bunch of fixed point assembler helper macros */ |
55 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) | 61 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) |
56 | /* These macros use the Coldfire EMAC extension and need the MACSR flags set | 62 | /* These macros use the Coldfire EMAC extension and need the MACSR flags set |
@@ -209,6 +215,7 @@ void dsp_set_eq_precut(int precut); | |||
209 | void dsp_set_eq_coefs(int band); | 215 | void dsp_set_eq_coefs(int band); |
210 | void sound_set_pitch(int r); | 216 | void sound_set_pitch(int r); |
211 | int sound_get_pitch(void); | 217 | int sound_get_pitch(void); |
218 | int dsp_callback(int msg, intptr_t param); | ||
212 | void channels_set(int value); | 219 | void channels_set(int value); |
213 | void stereo_width_set(int value); | 220 | void stereo_width_set(int value); |
214 | void dsp_dither_enable(bool enable); | 221 | void dsp_dither_enable(bool enable); |