From b0960aed111d63695f328d47b181a0bd620b42cb Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Tue, 21 Mar 2006 23:20:17 +0000 Subject: Enabled channel configuration and stereo width option on software codec platforms. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9173 a1c6a512-1295-4272-9138-f99709370657 --- apps/sound_menu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/sound_menu.c') diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 52a8d4e6e1..1c61c6630a 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -83,6 +83,14 @@ bool set_sound(const unsigned char * string, else if (*unit == 'H') talkunit = UNIT_HERTZ; if(!numdec) +#if CONFIG_CODEC == SWCODEC + /* We need to hijack this one and send it off to apps/dsp.c instead of + firmware/sound.c */ + if (setting == SOUND_STEREO_WIDTH) + return set_int(string, unit, talkunit, variable, &stereo_width_set, + steps, min, max, NULL ); + else +#endif return set_int(string, unit, talkunit, variable, sound_callback, steps, min, max, NULL ); else @@ -375,8 +383,13 @@ static bool chanconf(void) { STR(LANG_CHANNEL_RIGHT) }, { STR(LANG_CHANNEL_KARAOKE) } }; +#if CONFIG_CODEC == SWCODEC + return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, + names, 6, channels_set); +#else return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, names, 6, sound_set_channels); +#endif } static bool stereo_width(void) -- cgit v1.2.3