diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-03-21 23:20:17 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-03-21 23:20:17 +0000 |
commit | b0960aed111d63695f328d47b181a0bd620b42cb (patch) | |
tree | 95598c4ff1df1329e377962348529122e7d52173 /apps/sound_menu.c | |
parent | a27123fe81aa01997a2897cfb9b5872e41c71703 (diff) | |
download | rockbox-b0960aed111d63695f328d47b181a0bd620b42cb.tar.gz rockbox-b0960aed111d63695f328d47b181a0bd620b42cb.zip |
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
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 13 |
1 files changed, 13 insertions, 0 deletions
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, | |||
83 | else if (*unit == 'H') | 83 | else if (*unit == 'H') |
84 | talkunit = UNIT_HERTZ; | 84 | talkunit = UNIT_HERTZ; |
85 | if(!numdec) | 85 | if(!numdec) |
86 | #if CONFIG_CODEC == SWCODEC | ||
87 | /* We need to hijack this one and send it off to apps/dsp.c instead of | ||
88 | firmware/sound.c */ | ||
89 | if (setting == SOUND_STEREO_WIDTH) | ||
90 | return set_int(string, unit, talkunit, variable, &stereo_width_set, | ||
91 | steps, min, max, NULL ); | ||
92 | else | ||
93 | #endif | ||
86 | return set_int(string, unit, talkunit, variable, sound_callback, | 94 | return set_int(string, unit, talkunit, variable, sound_callback, |
87 | steps, min, max, NULL ); | 95 | steps, min, max, NULL ); |
88 | else | 96 | else |
@@ -375,8 +383,13 @@ static bool chanconf(void) | |||
375 | { STR(LANG_CHANNEL_RIGHT) }, | 383 | { STR(LANG_CHANNEL_RIGHT) }, |
376 | { STR(LANG_CHANNEL_KARAOKE) } | 384 | { STR(LANG_CHANNEL_KARAOKE) } |
377 | }; | 385 | }; |
386 | #if CONFIG_CODEC == SWCODEC | ||
387 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, | ||
388 | names, 6, channels_set); | ||
389 | #else | ||
378 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, | 390 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, |
379 | names, 6, sound_set_channels); | 391 | names, 6, sound_set_channels); |
392 | #endif | ||
380 | } | 393 | } |
381 | 394 | ||
382 | static bool stereo_width(void) | 395 | static bool stereo_width(void) |