diff options
author | Steve Bavin <pondlife@pondlife.me> | 2007-10-19 15:31:42 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2007-10-19 15:31:42 +0000 |
commit | 32a95751301a4aa5f51ea76b7eb3764d197dd6e3 (patch) | |
tree | 860d5e0c767cc53d038bb72ff19c237215dd3eee /apps/player/keyboard.c | |
parent | 877ea486bad40bde6f8b969acc8af50f244884c0 (diff) | |
download | rockbox-32a95751301a4aa5f51ea76b7eb3764d197dd6e3.tar.gz rockbox-32a95751301a4aa5f51ea76b7eb3764d197dd6e3.zip |
FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not just menus), hopefully save some space.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/player/keyboard.c')
-rw-r--r-- | apps/player/keyboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index c89161c8ca..dad8fc0f55 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c | |||
@@ -74,7 +74,7 @@ static unsigned short *kbd_setupkeys(int page, int* len) | |||
74 | /* helper function to spell a char if voice UI is enabled */ | 74 | /* helper function to spell a char if voice UI is enabled */ |
75 | static void kbd_spellchar(char c) | 75 | static void kbd_spellchar(char c) |
76 | { | 76 | { |
77 | if (talk_menus_enabled()) /* voice UI? */ | 77 | if (global_settings.talk_menu) /* voice UI? */ |
78 | { | 78 | { |
79 | unsigned char tmp[5]; | 79 | unsigned char tmp[5]; |
80 | /* store char to pass to talk_spell */ | 80 | /* store char to pass to talk_spell */ |
@@ -90,7 +90,7 @@ static void kbd_spellchar(char c) | |||
90 | 90 | ||
91 | static void say_edit(void) | 91 | static void say_edit(void) |
92 | { | 92 | { |
93 | if (talk_menus_enabled()) | 93 | if (global_settings.talk_menu) |
94 | talk_id(VOICE_EDIT, false); | 94 | talk_id(VOICE_EDIT, false); |
95 | } | 95 | } |
96 | 96 | ||
@@ -112,7 +112,7 @@ int kbd_input(char* text, int buflen) | |||
112 | 112 | ||
113 | editpos = utf8length(text); | 113 | editpos = utf8length(text); |
114 | 114 | ||
115 | if (talk_menus_enabled()) /* voice UI? */ | 115 | if (global_settings.talk_menu) /* voice UI? */ |
116 | talk_spell(text, true); /* spell initial text */ | 116 | talk_spell(text, true); /* spell initial text */ |
117 | 117 | ||
118 | while (!done) | 118 | while (!done) |
@@ -284,7 +284,7 @@ int kbd_input(char* text, int buflen) | |||
284 | editpos++; | 284 | editpos++; |
285 | } | 285 | } |
286 | } | 286 | } |
287 | if (talk_menus_enabled()) /* voice UI? */ | 287 | if (global_settings.talk_menu) /* voice UI? */ |
288 | talk_spell(text, false); /* speak revised text */ | 288 | talk_spell(text, false); /* speak revised text */ |
289 | break; | 289 | break; |
290 | 290 | ||