summaryrefslogtreecommitdiff
path: root/apps/dsp.h
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-03-07 19:11:16 +0000
committerThom Johansen <thomj@rockbox.org>2007-03-07 19:11:16 +0000
commit99b2742cd0de7181677f3aa7222caa5dc358ee12 (patch)
tree55c0cec293ca3fb1c35dc5fa983bb03bff54785d /apps/dsp.h
parent09b97b4a21921f05d29d215e0d5cf7df4f83a472 (diff)
downloadrockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.zip
rockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.tar.gz
rockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.tar.bz2
rockbox-99b2742cd0de7181677f3aa7222caa5dc358ee12.tar.xz
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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/dsp.h b/apps/dsp.h
index 03118e8..5d6e964 100644
--- a/apps/dsp.h
+++ b/apps/dsp.h
@@ -54,7 +54,9 @@ enum
enum {
DSP_CALLBACK_SET_PRESCALE = 0,
DSP_CALLBACK_SET_BASS,
- DSP_CALLBACK_SET_TREBLE
+ DSP_CALLBACK_SET_TREBLE,
+ DSP_CALLBACK_SET_CHANNEL_CONFIG,
+ DSP_CALLBACK_SET_STEREO_WIDTH
};
/* A bunch of fixed point assembler helper macros */
@@ -216,8 +218,8 @@ 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_set_channel_config(int value);
+void dsp_set_stereo_width(int value);
void dsp_dither_enable(bool enable);
#endif