mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
voice: splash_progress
Says "Loading x%" in previously unvoiced splash_progress Change-Id: I81780e3baf6ea8a8871a4433e1a733100b8cd5f6
This commit is contained in:
parent
a001d76afe
commit
c51ca1eeb5
5 changed files with 22 additions and 14 deletions
|
|
@ -420,22 +420,14 @@ static int pt_add_track(int i, enum ePT_SUM section, struct playing_time_info *p
|
|||
{
|
||||
struct mp3entry id3;
|
||||
struct playlist_track_info pl_track;
|
||||
static unsigned long talked_tick;
|
||||
int progress_total = pti->remaining_only ?
|
||||
(pti->nb_tracks - pti->curr_display_index) + 1 :
|
||||
pti->nb_tracks;
|
||||
|
||||
/* (voiced) */
|
||||
rb->splash_progress(pti->counted, progress_total, "%s (%s)",
|
||||
rb->str(LANG_WAIT), rb->str(LANG_OFF_ABORT));
|
||||
|
||||
if (rb->global_settings->talk_menu && TIME_AFTER(*rb->current_tick, talked_tick + HZ*5))
|
||||
{
|
||||
talked_tick = *rb->current_tick;
|
||||
rb_talk_ids(false, LANG_LOADING_PERCENT,
|
||||
TALK_ID(pti->counted * 100 / progress_total,
|
||||
UNIT_PERCENT));
|
||||
}
|
||||
|
||||
if (rb->action_userabort(TIMEOUT_NOBLOCK))
|
||||
return -1;
|
||||
else if (rb->playlist_get_track_info(NULL, i, &pl_track) < 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue