Added new channels modes and invert setting in cfg-loader. Patch by Christian Determann.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3406 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-03-10 14:07:36 +00:00
parent 7ebebafe0e
commit ae12ec721f
2 changed files with 13 additions and 6 deletions

View file

@ -878,9 +878,10 @@ bool settings_load_config(char* file)
set_sound(value, SOUND_BALANCE, &global_settings.balance);
else if (!strcasecmp(name, "channels")) {
static char* options[] = {
"stereo","mono","mono left","mono right"};
"stereo","stereo narrow","mono","mono left",
"mono right","karaoke","stereo wide"};
set_cfg_option(&global_settings.channel_config, value,
options, 4);
options, 7);
}
else if (!strcasecmp(name, "wps")) {
if (wps_load(value,false))
@ -941,6 +942,8 @@ bool settings_load_config(char* file)
}
else if (!strcasecmp(name, "scrollbar"))
set_cfg_bool(&global_settings.scrollbar, value);
else if (!strcasecmp(name, "invert"))
set_cfg_bool(&global_settings.invert, value);
#endif
else if (!strcasecmp(name, "shuffle"))
set_cfg_bool(&global_settings.playlist_shuffle, value);
@ -1000,8 +1003,10 @@ bool settings_load_config(char* file)
set_sound(value, SOUND_LOUDNESS, &global_settings.loudness);
else if (!strcasecmp(name, "bass boost"))
set_sound(value, SOUND_SUPERBASS, &global_settings.bass_boost);
else if (!strcasecmp(name, "auto volume"))
set_sound(value, SOUND_AVC, &global_settings.avc);
else if (!strcasecmp(name, "auto volume")) {
static char* options[] = {"off", "2", "4", "8" };
set_cfg_option(&global_settings.avc, value, options, 4);
}
else if (!strcasecmp(name, "rec mic gain"))
set_sound(value, SOUND_MIC_GAIN, &global_settings.rec_mic_gain);
else if (!strcasecmp(name, "rec left gain"))

View file

@ -18,7 +18,8 @@ volume (0 - 100)
bass (-15 - 15)
treble (-15 - 15)
balance (-100 - 100)
channels (stereo, mono, mono left, mono right)
channels (stereo, stereo narrow, stereo wide,
mono, mono left, mono right, karaoke)
shuffle (on, off)
repeat (off, all, one)
@ -54,7 +55,7 @@ Recorder-specific settings (allowed values) [unit]
---------------------------------------------------
loudness (0 - 17)
bass boost (0 - 100)
auto volume (0=off, 1=2s, 2=4s, 3=8s)
auto volume (off, 2, 4, 8) [seconds]
peak meter release (1 - 126)
peak meter hold (off, 200ms, 300ms, 500ms,
@ -74,6 +75,7 @@ volume display (graphic, numeric)
battery display (graphic, numeric)
time format (12hour, 24hour)
font (/path/filename.fnt)
invert (on, off)
deep discharge (on, off)
trickle charge (on, off)