From 6da56d9f089743570dacaa52e3ce12338d339ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Thu, 27 Feb 2003 15:02:20 +0000 Subject: Added three new channel modes: Stereo narrow, Stereo wide, and Karaoke (voice filter). Patch by Remo Hofer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3356 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/settings.c') diff --git a/apps/settings.c b/apps/settings.c index 7019319..a99d724 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -325,9 +325,10 @@ int settings_save( void ) config_block[0x10] = (unsigned char) ((global_settings.ff_rewind_min_step & 15) << 4 | (global_settings.ff_rewind_accel & 15)); + config_block[0x11] = (unsigned char) ((global_settings.avc & 0x03) | - ((global_settings.channel_config & 0x03) << 2)); + ((global_settings.channel_config & 0x07) << 2)); memcpy(&config_block[0x12], &global_settings.resume_index, 4); memcpy(&config_block[0x16], &global_settings.resume_offset, 4); @@ -457,7 +458,6 @@ void settings_apply(void) mpeg_sound_set(SOUND_BALANCE, global_settings.balance); mpeg_sound_set(SOUND_VOLUME, global_settings.volume); mpeg_sound_set(SOUND_CHANNELS, global_settings.channel_config); - #ifdef HAVE_MAS3587F mpeg_sound_set(SOUND_LOUDNESS, global_settings.loudness); mpeg_sound_set(SOUND_SUPERBASS, global_settings.bass_boost); @@ -598,7 +598,7 @@ void settings_load(void) if (config_block[0x11] != 0xFF) { global_settings.avc = config_block[0x11] & 0x03; - global_settings.channel_config = (config_block[0x11] >> 2) & 0x03; + global_settings.channel_config = (config_block[0x11] >> 2) & 0x07; } if (config_block[0x12] != 0xFF) -- cgit v1.1