diff options
| author | Michael Hohmuth <sideral@rockbox.org> | 2011-02-08 20:31:35 +0000 |
|---|---|---|
| committer | Michael Hohmuth <sideral@rockbox.org> | 2011-02-08 20:31:35 +0000 |
| commit | 7141ff45133c9c669e9a0769a6c13e05cbe0595c (patch) | |
| tree | 329e47007c157841d61bc604431223fce3d34ab7 /apps/settings.h | |
| parent | 4844142e161f24102bbe45f1f6207f3468649e78 (diff) | |
| download | rockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.zip rockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.tar.gz rockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.tar.bz2 rockbox-7141ff45133c9c669e9a0769a6c13e05cbe0595c.tar.xz | |
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/settings.h')
| -rw-r--r-- | apps/settings.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h index 131ff18..ae32a65 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -125,6 +125,10 @@ enum { SHOW_PATH_OFF = 0, SHOW_PATH_CURRENT, SHOW_PATH_FULL }; /* scrollbar visibility/position */ enum { SCROLLBAR_OFF = 0, SCROLLBAR_LEFT, SCROLLBAR_RIGHT }; +/* autoresume settings */ +enum { AUTORESUME_NEXTTRACK_NEVER = 0, AUTORESUME_NEXTTRACK_ALWAYS, + AUTORESUME_NEXTTRACK_CUSTOM}; + /* Alarm settings */ #ifdef HAVE_RTC_ALARM enum { ALARM_START_WPS = 0, @@ -577,6 +581,9 @@ struct user_settings #endif bool tagcache_autoupdate; /* automatically keep tagcache in sync? */ bool autoresume_enable; /* enable auto-resume feature? */ + int autoresume_automatic; /* resume next track? 0=never, 1=always, + 2=custom */ + unsigned char autoresume_strpat[MAX_PATHNAME+1]; /* comma-separated list */ bool runtimedb; /* runtime database active? */ #endif /* HAVE_TAGCACHE */ |