forked from len0rd/rockbox
Added play_selected option
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2323 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78ea93d869
commit
25316c5417
2 changed files with 8 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ int play_list(char *dir, /* "current directory" */
|
||||||
/* now shuffle around the indices */
|
/* now shuffle around the indices */
|
||||||
randomise_playlist( random_seed );
|
randomise_playlist( random_seed );
|
||||||
|
|
||||||
if(!shuffled_index) {
|
if(!shuffled_index && global_settings.play_selected) {
|
||||||
/* The given index was for the unshuffled list, so we need
|
/* The given index was for the unshuffled list, so we need
|
||||||
to figure out the index AFTER the shuffle has been made.
|
to figure out the index AFTER the shuffle has been made.
|
||||||
We scan for the seek position we remmber from before. */
|
We scan for the seek position we remmber from before. */
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,12 @@ static Menu shuffle(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static Menu play_selected(void)
|
||||||
|
{
|
||||||
|
set_bool( "Play Selected", &global_settings.play_selected );
|
||||||
|
return MENU_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static Menu mp3_filter(void)
|
static Menu mp3_filter(void)
|
||||||
{
|
{
|
||||||
set_bool( "Music Filter", &global_settings.mp3filter );
|
set_bool( "Music Filter", &global_settings.mp3filter );
|
||||||
|
|
@ -206,6 +212,7 @@ Menu playback_settings_menu(void)
|
||||||
#ifndef HAVE_RECORDER_KEYPAD
|
#ifndef HAVE_RECORDER_KEYPAD
|
||||||
{ "Shuffle", shuffle },
|
{ "Shuffle", shuffle },
|
||||||
#endif
|
#endif
|
||||||
|
{ "Play Selected", play_selected },
|
||||||
{ "Resume", resume },
|
{ "Resume", resume },
|
||||||
{ "FF/RW Min Step", ff_rewind_min_step },
|
{ "FF/RW Min Step", ff_rewind_min_step },
|
||||||
{ "FF/RW Accel", ff_rewind_accel },
|
{ "FF/RW Accel", ff_rewind_accel },
|
||||||
|
|
@ -336,4 +343,3 @@ Menu settings_menu(void)
|
||||||
menu_exit(m);
|
menu_exit(m);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue