diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2022-11-05 20:51:02 +0200 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-12 09:13:19 -0500 |
commit | ffe2df2e92cbdeb507a49279a85ac88cac2fbe4f (patch) | |
tree | 997ad849e34891f53ad55fa58fba437949e0aeaa /apps/menus | |
parent | 30ec10c790dd09f1eb681312093e945683ec643a (diff) | |
download | rockbox-ffe2df2e92cbdeb507a49279a85ac88cac2fbe4f.tar.gz rockbox-ffe2df2e92cbdeb507a49279a85ac88cac2fbe4f.zip |
Implement Rewind across tracks functionality
Useful feature for audiobooks. To rewind from the end of the previous track - press rewind at the very beginning of the current track. So if you are in the middle of the track - first rewind till beginning then release and press rewind button again (Playback Settings -> Rewind Across Tracks option should be enabled)
Fixes FS#13290
Change-Id: I5d7f06f64ad76d1e8f7827fe594ccca5f621769d
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/playback_menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c index 881a4b5a99..e4945be0b5 100644 --- a/apps/menus/playback_menu.c +++ b/apps/menus/playback_menu.c | |||
@@ -174,6 +174,7 @@ MAKE_MENU(unplug_menu, ID2P(LANG_HEADPHONE_UNPLUG), 0, Icon_NOICON, | |||
174 | 174 | ||
175 | MENUITEM_SETTING(skip_length, &global_settings.skip_length, NULL); | 175 | MENUITEM_SETTING(skip_length, &global_settings.skip_length, NULL); |
176 | MENUITEM_SETTING(prevent_skip, &global_settings.prevent_skip, NULL); | 176 | MENUITEM_SETTING(prevent_skip, &global_settings.prevent_skip, NULL); |
177 | MENUITEM_SETTING(rewind_across_tracks, &global_settings.rewind_across_tracks, NULL); | ||
177 | MENUITEM_SETTING(resume_rewind, &global_settings.resume_rewind, NULL); | 178 | MENUITEM_SETTING(resume_rewind, &global_settings.resume_rewind, NULL); |
178 | MENUITEM_SETTING(pause_rewind, &global_settings.pause_rewind, NULL); | 179 | MENUITEM_SETTING(pause_rewind, &global_settings.pause_rewind, NULL); |
179 | #ifdef HAVE_PLAY_FREQ | 180 | #ifdef HAVE_PLAY_FREQ |
@@ -226,6 +227,7 @@ MAKE_MENU(playback_settings,ID2P(LANG_PLAYBACK),0, | |||
226 | ,&unplug_menu | 227 | ,&unplug_menu |
227 | #endif | 228 | #endif |
228 | ,&skip_length, &prevent_skip | 229 | ,&skip_length, &prevent_skip |
230 | ,&rewind_across_tracks | ||
229 | 231 | ||
230 | ,&resume_rewind | 232 | ,&resume_rewind |
231 | ,&pause_rewind | 233 | ,&pause_rewind |