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,8 +679,18 @@ static void display_playlist_count(int count, const unsigned char *fmt,
if(count && TIME_AFTER(current_tick, next_tick))
{
talked_tick = current_tick;
talk_number(count, false);
talk_id(id, true);
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_id(id, true);
}
}
}