summaryrefslogtreecommitdiffstats
path: root/apps/talk.h
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 11:26:36 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 11:26:36 +0000
commit45e0de3e638ce224df30abef489a6cd3db874f48 (patch)
treead0db8c3c8855391326330e204cdd7751a1c1c96 /apps/talk.h
parentdbe19115ec6df78a612ac338e1716281df64455f (diff)
downloadrockbox-45e0de3e638ce224df30abef489a6cd3db874f48.tar.gz
rockbox-45e0de3e638ce224df30abef489a6cd3db874f48.tar.bz2
rockbox-45e0de3e638ce224df30abef489a6cd3db874f48.zip
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5929 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/talk.h')
-rw-r--r--apps/talk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/talk.h b/apps/talk.h
index d07f955e67..213e1803d4 100644
--- a/apps/talk.h
+++ b/apps/talk.h
@@ -49,7 +49,7 @@ enum {
/* make a "talkable" ID from number + unit
unit is upper 4 bits, number the remaining (in regular 2's complement) */
-#define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT)))
+#define TALK_ID(n,u) (((long)(u))<<UNIT_SHIFT | ((n) & ~(-1L<<UNIT_SHIFT)))
/* convenience macro to have both virtual pointer and ID as arguments */
#define STR(id) ID2P(id), id
@@ -60,10 +60,10 @@ extern const char* const file_thumbnail_ext; /* ".talk" for file voicing */
void talk_init(void);
int talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */
-int talk_id(int id, bool enqueue); /* play a voice ID from voicefont */
+int talk_id(long id, bool enqueue); /* play a voice ID from voicefont */
int talk_file(const char* filename, bool enqueue); /* play a thumbnail from file */
-int talk_number(int n, bool enqueue); /* say a number */
-int talk_value(int n, int unit, bool enqueue); /* say a numeric value */
+int talk_number(long n, bool enqueue); /* say a number */
+int talk_value(long n, int unit, bool enqueue); /* say a numeric value */
int talk_spell(const char* spell, bool enqueue); /* spell a string */
#endif /* __TALK_H__ */