diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-03-07 19:11:16 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-03-07 19:11:16 +0000 |
commit | 99b2742cd0de7181677f3aa7222caa5dc358ee12 (patch) | |
tree | 55c0cec293ca3fb1c35dc5fa983bb03bff54785d /apps/dsp.h | |
parent | 09b97b4a21921f05d29d215e0d5cf7df4f83a472 (diff) | |
download | rockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.tar.gz rockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.zip |
Use the new DSP callback functionality in firmware/sound.c to deal with SWCODEC stereo width and channel configuration instead of the old more spread out #ifdef based approach. Rename the DSP functions involved for more consistent naming.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12677 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dsp.h')
-rw-r--r-- | apps/dsp.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/dsp.h b/apps/dsp.h index 03118e8c31..5d6e964d89 100644 --- a/apps/dsp.h +++ b/apps/dsp.h | |||
@@ -54,7 +54,9 @@ enum | |||
54 | enum { | 54 | enum { |
55 | DSP_CALLBACK_SET_PRESCALE = 0, | 55 | DSP_CALLBACK_SET_PRESCALE = 0, |
56 | DSP_CALLBACK_SET_BASS, | 56 | DSP_CALLBACK_SET_BASS, |
57 | DSP_CALLBACK_SET_TREBLE | 57 | DSP_CALLBACK_SET_TREBLE, |
58 | DSP_CALLBACK_SET_CHANNEL_CONFIG, | ||
59 | DSP_CALLBACK_SET_STEREO_WIDTH | ||
58 | }; | 60 | }; |
59 | 61 | ||
60 | /* A bunch of fixed point assembler helper macros */ | 62 | /* A bunch of fixed point assembler helper macros */ |
@@ -216,8 +218,8 @@ void dsp_set_eq_coefs(int band); | |||
216 | void sound_set_pitch(int r); | 218 | void sound_set_pitch(int r); |
217 | int sound_get_pitch(void); | 219 | int sound_get_pitch(void); |
218 | int dsp_callback(int msg, intptr_t param); | 220 | int dsp_callback(int msg, intptr_t param); |
219 | void channels_set(int value); | 221 | void dsp_set_channel_config(int value); |
220 | void stereo_width_set(int value); | 222 | void dsp_set_stereo_width(int value); |
221 | void dsp_dither_enable(bool enable); | 223 | void dsp_dither_enable(bool enable); |
222 | 224 | ||
223 | #endif | 225 | #endif |