1
0
Fork 0
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:
Stéphane Doyon 2007-11-07 01:45:43 +00:00
parent 6f4c6ed990
commit 8024aad1f1

View file

@ -268,11 +268,16 @@ static int tree_voice_cb(int selected_item, void * data)
talk_id(is_dir ? VOICE_DIR : VOICE_FILE, false); talk_id(is_dir ? VOICE_DIR : VOICE_FILE, false);
talk_number(selected_item+1 - (is_dir ? 0 : local_tc->dirsindir), talk_number(selected_item+1 - (is_dir ? 0 : local_tc->dirsindir),
true); true);
if(!is_dir) if(!is_dir && *local_tc->dirfilter < NUM_FILTER_MODES)
say_filetype(attr); say_filetype(attr);
break; break;
case 2: /* spelled */ 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; break;
} }
} }
@ -1203,6 +1208,7 @@ static int ft_play_dirname(char* name)
DEBUGF("Found: %s\n", dirname_mp3_filename); DEBUGF("Found: %s\n", dirname_mp3_filename);
talk_file(dirname_mp3_filename, false); talk_file(dirname_mp3_filename, false);
talk_id(VOICE_DIR, true);
return 1; return 1;
} }