From 99b2742cd0de7181677f3aa7222caa5dc358ee12 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Wed, 7 Mar 2007 19:11:16 +0000 Subject: 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 --- apps/dsp.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apps/dsp.h') 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 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 -- cgit v1.2.3