diff options
Diffstat (limited to 'apps/talk.h')
-rw-r--r-- | apps/talk.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/talk.h b/apps/talk.h index de93b1678c..c4c8bc7285 100644 --- a/apps/talk.h +++ b/apps/talk.h | |||
@@ -49,7 +49,7 @@ enum { | |||
49 | 49 | ||
50 | /* make a "talkable" ID from number + unit | 50 | /* make a "talkable" ID from number + unit |
51 | unit is upper 4 bits, number the remaining (in regular 2's complement) */ | 51 | unit is upper 4 bits, number the remaining (in regular 2's complement) */ |
52 | #define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT))) | 52 | #define TALK_ID(n,u) ((u)<<UNIT_SHIFT | ((n) & ~(-1<<UNIT_SHIFT))) |
53 | 53 | ||
54 | /* convenience macro to have both virtual pointer and ID as arguments */ | 54 | /* convenience macro to have both virtual pointer and ID as arguments */ |
55 | #define STR(id) ID2P(id), id | 55 | #define STR(id) ID2P(id), id |
@@ -61,9 +61,9 @@ extern const char* const dir_thumbnail_name; | |||
61 | void talk_init(void); | 61 | void talk_init(void); |
62 | int talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */ | 62 | int talk_buffer_steal(void); /* claim the mp3 buffer e.g. for play/record */ |
63 | int talk_id(int id, bool enqueue); /* play a voice ID from voicefont */ | 63 | int talk_id(int id, bool enqueue); /* play a voice ID from voicefont */ |
64 | int talk_file(char* filename, bool enqueue); /* play a thumbnail from file */ | 64 | int talk_file(const char* filename, bool enqueue); /* play a thumbnail from file */ |
65 | int talk_number(int n, bool enqueue); /* say a number */ | 65 | int talk_number(int n, bool enqueue); /* say a number */ |
66 | int talk_value(int n, int unit, bool enqueue); /* say a numeric value */ | 66 | int talk_value(int n, int unit, bool enqueue); /* say a numeric value */ |
67 | int talk_spell(char* spell, bool enqueue); /* spell a string */ | 67 | int talk_spell(const char* spell, bool enqueue); /* spell a string */ |
68 | 68 | ||
69 | #endif /* __TALK_H__ */ | 69 | #endif /* __TALK_H__ */ |