forked from len0rd/rockbox
Accept FS#7653: Say file type.
In the file browser, when spelling of directory or file names is enabled, say the file type (or "folder"). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15506 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6f4c6ed990
commit
8024aad1f1
1 changed files with 8 additions and 2 deletions
10
apps/tree.c
10
apps/tree.c
|
@ -268,11 +268,16 @@ static int tree_voice_cb(int selected_item, void * data)
|
|||
talk_id(is_dir ? VOICE_DIR : VOICE_FILE, false);
|
||||
talk_number(selected_item+1 - (is_dir ? 0 : local_tc->dirsindir),
|
||||
true);
|
||||
if(!is_dir)
|
||||
if(!is_dir && *local_tc->dirfilter < NUM_FILTER_MODES)
|
||||
say_filetype(attr);
|
||||
break;
|
||||
case 2: /* spelled */
|
||||
talk_spell(name, false);
|
||||
talk_shutup();
|
||||
if(is_dir)
|
||||
talk_id(VOICE_DIR, true);
|
||||
else if(*local_tc->dirfilter < NUM_FILTER_MODES)
|
||||
say_filetype(attr);
|
||||
talk_spell(name, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1203,6 +1208,7 @@ static int ft_play_dirname(char* name)
|
|||
DEBUGF("Found: %s\n", dirname_mp3_filename);
|
||||
|
||||
talk_file(dirname_mp3_filename, false);
|
||||
talk_id(VOICE_DIR, true);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue