static int shortcut_menu_speak_item(int selected_item, void * data) { (void)data; struct shortcut *sc = get_shortcut(selected_item); if (sc && sc->talk_clip[0]) talk_file(NULL, NULL, sc->talk_clip, NULL, NULL, false); return 0; }
static void ft_play_filename(char *dir, char *file) { #if CONFIG_CODEC != SWCODEC if (audio_status() & AUDIO_STATUS_PLAY) return; #endif if (strlen(file) >= strlen(file_thumbnail_ext) && strcasecmp(&file[strlen(file) - strlen(file_thumbnail_ext)], file_thumbnail_ext)) /* file has no .talk extension */ talk_file(dir, NULL, file, file_thumbnail_ext, NULL, false); else /* it already is a .talk file, play this directly, but prefix it. */ talk_file(dir, NULL, file, NULL, TALK_IDARRAY(LANG_VOICE_DIR_HOVER), false); }
static int ft_play_dirname(char* name) { #if CONFIG_CODEC != SWCODEC if (audio_status() & AUDIO_STATUS_PLAY) return 0; #endif if(talk_file(tc.currdir, name, dir_thumbnail_name, NULL, NULL, false)) { if(global_settings.talk_filetype) talk_id(VOICE_DIR, true); return 1; } else return -1; }