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.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.h8
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
54enum { 54enum {
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);
216void sound_set_pitch(int r); 218void sound_set_pitch(int r);
217int sound_get_pitch(void); 219int sound_get_pitch(void);
218int dsp_callback(int msg, intptr_t param); 220int dsp_callback(int msg, intptr_t param);
219void channels_set(int value); 221void dsp_set_channel_config(int value);
220void stereo_width_set(int value); 222void dsp_set_stereo_width(int value);
221void dsp_dither_enable(bool enable); 223void dsp_dither_enable(bool enable);
222 224
223#endif 225#endif