summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorMichael Hohmuth <sideral@rockbox.org>2011-02-08 20:31:35 +0000
committerMichael Hohmuth <sideral@rockbox.org>2011-02-08 20:31:35 +0000
commit7141ff45133c9c669e9a0769a6c13e05cbe0595c (patch)
tree329e47007c157841d61bc604431223fce3d34ab7 /apps/playback.c
parent4844142e161f24102bbe45f1f6207f3468649e78 (diff)
downloadrockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.tar.gz
rockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.zip
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
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index e33a4ac507..fe7b74893a 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1002,8 +1002,13 @@ static void audio_update_trackinfo(void)
1002 thistrack_id3->elapsed = 0; 1002 thistrack_id3->elapsed = 0;
1003 1003
1004#ifdef HAVE_TAGCACHE 1004#ifdef HAVE_TAGCACHE
1005 /* Resume all manually selected tracks if so configured */ 1005 /* Ignoring resume position for automatic track change if so configured */
1006 resume = global_settings.autoresume_enable && !automatic_skip; 1006 resume = global_settings.autoresume_enable &&
1007 (!automatic_skip /* Resume all manually selected tracks */
1008 || global_settings.autoresume_automatic == AUTORESUME_NEXTTRACK_ALWAYS
1009 || (global_settings.autoresume_automatic != AUTORESUME_NEXTTRACK_NEVER
1010 /* Not never resume? */
1011 && autoresumable(thistrack_id3))); /* Pass Resume filter? */
1007#endif 1012#endif
1008 1013
1009 if (!resume) 1014 if (!resume)