1
0
Fork 0
forked from len0rd/rockbox

Add option to resume next track on automatic track change

Move autoresume setting into its own menu.  Add option to customize
which tracks should be resumed on automatic track change.  Tracks can
be selected based on their their file location or genre tag
(comma-separated list of filename / genre substrings).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29251 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Hohmuth 2011-02-08 20:31:35 +00:00
parent 4844142e16
commit 7141ff4513
7 changed files with 165 additions and 28 deletions

View file

@ -1002,8 +1002,13 @@ static void audio_update_trackinfo(void)
thistrack_id3->elapsed = 0;
#ifdef HAVE_TAGCACHE
/* Resume all manually selected tracks if so configured */
resume = global_settings.autoresume_enable && !automatic_skip;
/* Ignoring resume position for automatic track change if so configured */
resume = global_settings.autoresume_enable &&
(!automatic_skip /* Resume all manually selected tracks */
|| global_settings.autoresume_automatic == AUTORESUME_NEXTTRACK_ALWAYS
|| (global_settings.autoresume_automatic != AUTORESUME_NEXTTRACK_NEVER
/* Not never resume? */
&& autoresumable(thistrack_id3))); /* Pass Resume filter? */
#endif
if (!resume)