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 DSP_CROSSFEED }; +enum { + DSP_CALLBACK_SET_PRESCALE = 0, + DSP_CALLBACK_SET_BASS, + DSP_CALLBACK_SET_TREBLE +}; + /* A bunch of fixed point assembler helper macros */ #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) /* These macros use the Coldfire EMAC extension and need the MACSR flags set @@ -209,6 +215,7 @@ void dsp_set_eq_precut(int precut); void dsp_set_eq_coefs(int band); void sound_set_pitch(int r); int sound_get_pitch(void); +int dsp_callback(int msg, intptr_t param); void channels_set(int value); void stereo_width_set(int value); void dsp_dither_enable(bool enable); |