summaryrefslogtreecommitdiff
path: root/apps/recorder/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r--apps/recorder/keyboard.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 9c35f288ff..6c75d07a65 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -191,7 +191,7 @@ int load_kbd(unsigned char* filename)
191/* helper function to spell a char if voice UI is enabled */ 191/* helper function to spell a char if voice UI is enabled */
192static void kbd_spellchar(unsigned short c) 192static void kbd_spellchar(unsigned short c)
193{ 193{
194 if (talk_menus_enabled()) /* voice UI? */ 194 if (global_settings.talk_menu) /* voice UI? */
195 { 195 {
196 unsigned char tmp[5]; 196 unsigned char tmp[5];
197 /* store char to pass to talk_spell */ 197 /* store char to pass to talk_spell */
@@ -208,7 +208,7 @@ static void kbd_spellchar(unsigned short c)
208#ifdef KBD_MODES 208#ifdef KBD_MODES
209static void say_edit(void) 209static void say_edit(void)
210{ 210{
211 if(talk_menus_enabled()) 211 if(global_settings.talk_menu)
212 talk_id(VOICE_EDIT, false); 212 talk_id(VOICE_EDIT, false);
213} 213}
214#endif 214#endif
@@ -527,7 +527,7 @@ int kbd_input(char* text, int buflen)
527 /* Initial edit position is after last character */ 527 /* Initial edit position is after last character */
528 editpos = utf8length(text); 528 editpos = utf8length(text);
529 529
530 if (talk_menus_enabled()) /* voice UI? */ 530 if (global_settings.talk_menu) /* voice UI? */
531 talk_spell(text, true); /* spell initial text */ 531 talk_spell(text, true); /* spell initial text */
532 532
533 533
@@ -832,7 +832,7 @@ int kbd_input(char* text, int buflen)
832 kbd_spellchar(text[c]); 832 kbd_spellchar(text[c]);
833 } 833 }
834#if CONFIG_CODEC == SWCODEC 834#if CONFIG_CODEC == SWCODEC
835 else if (talk_menus_enabled()) 835 else if (global_settings.talk_menu)
836 pcmbuf_beep(1000, 150, 1500); 836 pcmbuf_beep(1000, 150, 1500);
837#endif 837#endif
838 } 838 }
@@ -877,7 +877,7 @@ int kbd_input(char* text, int buflen)
877 kbd_spellchar(text[c]); 877 kbd_spellchar(text[c]);
878 } 878 }
879#if CONFIG_CODEC == SWCODEC 879#if CONFIG_CODEC == SWCODEC
880 else if (talk_menus_enabled()) 880 else if (global_settings.talk_menu)
881 pcmbuf_beep(1000, 150, 1500); 881 pcmbuf_beep(1000, 150, 1500);
882#endif 882#endif
883 } 883 }
@@ -1124,7 +1124,7 @@ int kbd_input(char* text, int buflen)
1124 kbd_inschar(text, buflen, &editpos, ch); 1124 kbd_inschar(text, buflen, &editpos, ch);
1125 } 1125 }
1126 1126
1127 if (talk_menus_enabled()) /* voice UI? */ 1127 if (global_settings.talk_menu) /* voice UI? */
1128 talk_spell(text, false); 1128 talk_spell(text, false);
1129 1129
1130 /* speak revised text */ 1130 /* speak revised text */
@@ -1153,7 +1153,7 @@ int kbd_input(char* text, int buflen)
1153 kbd_inschar(text, buflen, &editpos, ch); 1153 kbd_inschar(text, buflen, &editpos, ch);
1154 } 1154 }
1155 1155
1156 if (talk_menus_enabled()) /* voice UI? */ 1156 if (global_settings.talk_menu) /* voice UI? */
1157 talk_spell(text, false); /* speak revised text */ 1157 talk_spell(text, false); /* speak revised text */
1158 break; 1158 break;
1159 1159
@@ -1166,7 +1166,7 @@ int kbd_input(char* text, int buflen)
1166 kbd_spellchar(text[c]); 1166 kbd_spellchar(text[c]);
1167 } 1167 }
1168#if CONFIG_CODEC == SWCODEC 1168#if CONFIG_CODEC == SWCODEC
1169 else if (talk_menus_enabled()) 1169 else if (global_settings.talk_menu)
1170 pcmbuf_beep(1000, 150, 1500); 1170 pcmbuf_beep(1000, 150, 1500);
1171#endif 1171#endif
1172 break; 1172 break;
@@ -1180,7 +1180,7 @@ int kbd_input(char* text, int buflen)
1180 kbd_spellchar(text[c]); 1180 kbd_spellchar(text[c]);
1181 } 1181 }
1182#if CONFIG_CODEC == SWCODEC 1182#if CONFIG_CODEC == SWCODEC
1183 else if (talk_menus_enabled()) 1183 else if (global_settings.talk_menu)
1184 pcmbuf_beep(1000, 150, 1500); 1184 pcmbuf_beep(1000, 150, 1500);
1185#endif 1185#endif
1186 break; 1186 break;
@@ -1212,7 +1212,7 @@ int kbd_input(char* text, int buflen)
1212 param[l].hangul = false; 1212 param[l].hangul = false;
1213 kbd_inschar(text, buflen, &editpos, morse_alphabets[j]); 1213 kbd_inschar(text, buflen, &editpos, morse_alphabets[j]);
1214 1214
1215 if (talk_menus_enabled()) /* voice UI? */ 1215 if (global_settings.talk_menu) /* voice UI? */
1216 talk_spell(text, false); /* speak revised text */ 1216 talk_spell(text, false); /* speak revised text */
1217 } 1217 }
1218#endif /* KBD_MORSE_INPUT */ 1218#endif /* KBD_MORSE_INPUT */