summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-05-12 06:44:29 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-05-12 06:44:29 +0000
commit35fd1e4e9933cc3d448cd6415f43f42f0289cd61 (patch)
treefc265c7c737b1373fae1bfde21c570270330ca8b /apps/gui/option_select.c
parent1de56ac367c332a675af430a7023f7c0e4d81d06 (diff)
Fix F_T_SOUND voicing for decimals and physical values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25961 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index a1e41f10e8..ac8ba43793 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -192,14 +192,17 @@ void option_talk_value(const struct settings_list *setting, int value, bool enqu
else if ((setting->flags & F_T_SOUND) == F_T_SOUND)
{
int talkunit = UNIT_INT;
- const char *unit = sound_unit(setting->sound_setting->setting);
+ int sound_setting = setting->sound_setting->setting;
+ const char *unit = sound_unit(sound_setting);
+ int decimals = sound_numdecimals(sound_setting);
+ int phys = sound_val2phys(sound_setting, value);
if (!strcmp(unit, "dB"))
talkunit = UNIT_DB;
else if (!strcmp(unit, "%"))
talkunit = UNIT_PERCENT;
else if (!strcmp(unit, "Hz"))
talkunit = UNIT_HERTZ;
- talk_value(value, talkunit, false);
+ talk_value_decimal(phys, talkunit, decimals, false);
}
else if ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING)
{