1
0
Fork 0
forked from len0rd/rockbox

Speech Feedback improvements on the Quickscreen

Patch by Igor Poretsky

Change-Id: I1bb94965cb18efaa0787d7780f6cf22814231144
This commit is contained in:
Solomon Peachy 2019-08-04 22:42:46 -04:00
parent 3b7ae5e06b
commit 8143e4437b
2 changed files with 8 additions and 7 deletions

View file

@ -188,7 +188,7 @@ void option_talk_value(const struct settings_list *setting, int value, bool enqu
talkunit = UNIT_PERCENT; talkunit = UNIT_PERCENT;
else if (!strcmp(unit, "Hz")) else if (!strcmp(unit, "Hz"))
talkunit = UNIT_HERTZ; talkunit = UNIT_HERTZ;
talk_value_decimal(phys, talkunit, decimals, false); talk_value_decimal(phys, talkunit, decimals, enqueue);
} }
else if ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING) else if ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING)
{ {

View file

@ -233,10 +233,9 @@ static void talk_qs_option(const struct settings_list *opt, bool enqueue)
if (!global_settings.talk_menu || !opt) if (!global_settings.talk_menu || !opt)
return; return;
if (!enqueue) if (enqueue)
talk_shutup(); talk_id(opt->lang_id, enqueue);
talk_id(opt->lang_id, true); option_talk_value(opt, option_value_as_int(opt), enqueue);
option_talk_value(opt, option_value_as_int(opt), true);
} }
/* /*
@ -334,9 +333,11 @@ static bool gui_syncquickscreen_run(struct gui_quickscreen * qs, int button_ente
changed. */ changed. */
cond_talk_ids(VOICE_QUICKSCREEN); cond_talk_ids(VOICE_QUICKSCREEN);
talk_qs_option(qs->items[QUICKSCREEN_TOP], true); talk_qs_option(qs->items[QUICKSCREEN_TOP], true);
if (qs->items[QUICKSCREEN_TOP] != qs->items[QUICKSCREEN_BOTTOM])
talk_qs_option(qs->items[QUICKSCREEN_BOTTOM], true);
talk_qs_option(qs->items[QUICKSCREEN_LEFT], true); talk_qs_option(qs->items[QUICKSCREEN_LEFT], true);
talk_qs_option(qs->items[QUICKSCREEN_BOTTOM], true); if (qs->items[QUICKSCREEN_LEFT] != qs->items[QUICKSCREEN_RIGHT])
talk_qs_option(qs->items[QUICKSCREEN_RIGHT], true); talk_qs_option(qs->items[QUICKSCREEN_RIGHT], true);
while (true) { while (true) {
button = get_action(CONTEXT_QUICKSCREEN, HZ/5); button = get_action(CONTEXT_QUICKSCREEN, HZ/5);
#ifdef HAVE_TOUCHSCREEN #ifdef HAVE_TOUCHSCREEN