forked from len0rd/rockbox
Accept FS#7897 with some changes by me. moves the code to talk time/date out of main_menu.c to make it hopefully more useful.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15011 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
32f8c402de
commit
d7d6b780d4
3 changed files with 78 additions and 62 deletions
10
apps/talk.h
10
apps/talk.h
|
|
@ -25,6 +25,7 @@
|
|||
#define __TALK_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "time.h"
|
||||
|
||||
enum {
|
||||
/* See array "unit_voiced" in talk.c function "talk_value" */
|
||||
|
|
@ -78,6 +79,15 @@ void talk_disable_menus(void); /* disable voice menus (temporarily, not persiste
|
|||
void talk_enable_menus(void); /* re-enable voice menus */
|
||||
int do_shutup(void); /* kill voice unconditionally */
|
||||
|
||||
#if CONFIG_RTC
|
||||
/* this is in talk.c which isnt compiled for hwcodec simulator */
|
||||
#if !defined(SIMULATOR) || CONFIG_CODEC == SWCODEC
|
||||
void talk_date_time(struct tm *time, bool speak_current_time_string);
|
||||
#else
|
||||
#define talk_date_time(t, s)
|
||||
#endif
|
||||
#endif /* CONFIG_RTC */
|
||||
|
||||
/* This (otherwise invalid) ID signals the end of the array. */
|
||||
#define TALK_FINAL_ID LANG_LAST_INDEX_IN_ARRAY
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue