voice: Use "All" prefix for final progress announcement

Use "All" prefix when the final item count is announced
in display_playlist_count and search_playlist
("All 2000 tracks saved"), to make it possible to tell
when the operation has finished.

Change-Id: I90419599fb30da511ee4671b8f0f7f92e2098fd0
This commit is contained in:
Christian Soffke 2025-06-01 00:53:27 +02:00
parent 4e50ae5e6e
commit 60010b52a2
2 changed files with 13 additions and 3 deletions

View file

@ -679,10 +679,20 @@ static void display_playlist_count(int count, const unsigned char *fmt,
if(count && TIME_AFTER(current_tick, next_tick)) if(count && TIME_AFTER(current_tick, next_tick))
{ {
talked_tick = current_tick; talked_tick = current_tick;
if (final)
{
talk_id(LANG_ALL, false);
talk_number(count, true);
talk_id(id, true);
talk_force_enqueue_next(); /* Don't interrupt final announcement */
}
else
{
talk_number(count, false); talk_number(count, false);
talk_id(id, true); talk_id(id, true);
} }
} }
}
splashf(0, P2STR(fmt), count, str(LANG_OFF_ABORT)); /* (voiced above) */ splashf(0, P2STR(fmt), count, str(LANG_OFF_ABORT)); /* (voiced above) */
} }

View file

@ -1295,7 +1295,7 @@ bool search_playlist(void)
cpu_boost(false); cpu_boost(false);
cond_talk_ids_fq(TALK_ID(found_indicies_count, UNIT_INT), cond_talk_ids_fq(LANG_ALL, TALK_ID(found_indicies_count, UNIT_INT),
LANG_PLAYLIST_SEARCH_MSG); LANG_PLAYLIST_SEARCH_MSG);
if (!found_indicies_count) if (!found_indicies_count)
{ {