diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/keyboard.c | 20 | ||||
-rw-r--r-- | apps/recorder/recording.c | 6 |
2 files changed, 13 insertions, 13 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 */ |
192 | static void kbd_spellchar(unsigned short c) | 192 | static 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 |
209 | static void say_edit(void) | 209 | static 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 */ |
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 3b706e1a6d..84207c77ab 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -889,7 +889,7 @@ bool recording_screen(bool no_source) | |||
889 | 889 | ||
890 | #if CONFIG_CODEC == SWCODEC | 890 | #if CONFIG_CODEC == SWCODEC |
891 | /* recording_menu gets messed up: so prevent manus talking */ | 891 | /* recording_menu gets messed up: so prevent manus talking */ |
892 | talk_disable_menus(); | 892 | talk_disable(true); |
893 | /* audio_init_recording stops anything playing when it takes the audio | 893 | /* audio_init_recording stops anything playing when it takes the audio |
894 | buffer */ | 894 | buffer */ |
895 | #else | 895 | #else |
@@ -1873,8 +1873,8 @@ bool recording_screen(bool no_source) | |||
1873 | /* Go back to playback mode */ | 1873 | /* Go back to playback mode */ |
1874 | rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); | 1874 | rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); |
1875 | 1875 | ||
1876 | /* restore talk_menu setting */ | 1876 | /* restore talking */ |
1877 | talk_enable_menus(); | 1877 | talk_disable(false); |
1878 | #else /* !SWCODEC */ | 1878 | #else /* !SWCODEC */ |
1879 | audio_init_playback(); | 1879 | audio_init_playback(); |
1880 | #endif /* CONFIG_CODEC == SWCODEC */ | 1880 | #endif /* CONFIG_CODEC == SWCODEC */ |