summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-04-20 11:02:42 +0000
committerNils Wallménius <nils@rockbox.org>2008-04-20 11:02:42 +0000
commit2521bf5d2675ddd8c07637d021198134a7e12445 (patch)
tree72215a929b18362b672615981650aac5941073a2 /apps/talk.h
parentdb2d61f4eab4adc099abeaafa5e6f97d75f92824 (diff)
downloadrockbox-2521bf5d2675ddd8c07637d021198134a7e12445.tar.gz
rockbox-2521bf5d2675ddd8c07637d021198134a7e12445.tar.bz2
rockbox-2521bf5d2675ddd8c07637d021198134a7e12445.zip
Fix speaking of decimal values to work when decimals != 1, spell the fractional part instead of speaking it like a number, break out a part of output_dyn_value into a separate function and use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/talk.h b/apps/talk.h
index afd280e950..d94979421c 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -62,7 +62,7 @@ enum {
#define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<UNIT_SHIFT)))
/* make a "talkable" ID from a decimal number + unit, the decimal number
- is represented like x*10*d where d is the number of decimal digits */
+ is represented like x*10^d where d is the number of decimal digits */
#define TALK_ID_DECIMAL(n,d,u) (((long)(u))<<UNIT_SHIFT |\
((long)(d))<<DECIMAL_SHIFT |\
((n) & ~(-1L<<DECIMAL_SHIFT)))
@@ -92,6 +92,9 @@ void talk_disable(bool disable); /* temporarily disable (or re-enable) talking (
void talk_force_shutup(void); /* kill voice unconditionally */
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(struct tm *tm, bool enqueue);
void talk_date(struct tm *tm, bool enqueue);