mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
FS#7704 - Talk support for plugins
Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54
This commit is contained in:
parent
9c17734394
commit
55eb1c54eb
12 changed files with 583 additions and 133 deletions
|
@ -107,11 +107,11 @@ int talk_file(const char *root, const char *dir, const char *file,
|
|||
/* play file's thumbnail or spell name */
|
||||
int talk_file_or_spell(const char *dirname, const char* filename,
|
||||
const long *prefix_ids, bool enqueue);
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
|
||||
/* play dir's thumbnail or spell name */
|
||||
int talk_dir_or_spell(const char* filename,
|
||||
const long *prefix_ids, bool enqueue);
|
||||
#endif
|
||||
|
||||
/* play thumbnails for each components of full path, or spell */
|
||||
int talk_fullpath(const char* path, bool enqueue);
|
||||
int talk_number(long n, bool enqueue); /* say a number */
|
||||
|
@ -126,10 +126,8 @@ void talk_shutup(void); /* Interrupt voice, as when enqueue is false */
|
|||
/* helper function for speaking fractional numbers */
|
||||
void talk_fractional(char *tbuf, int value, int unit);
|
||||
|
||||
#if CONFIG_RTC
|
||||
void talk_time(const struct tm *tm, bool enqueue);
|
||||
void talk_date(const struct tm *tm, bool enqueue);
|
||||
#endif /* CONFIG_RTC */
|
||||
|
||||
/* speaks hr, min, sec, ms; unit_idx is lowest or base unit of the time value */
|
||||
int talk_time_intervals(long time, int unit_idx, bool enqueue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue