diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-02-19 16:04:42 +0100 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-16 15:11:33 +0000 |
commit | 3bb78b468d32289f4d83fbd4f95b7dd9fc93c983 (patch) | |
tree | 62abc90dec3f06bae15bb3980ad92e3fb9a90911 | |
parent | 576b56b35a2bb74b77f5b399189ee6e16de9f4c9 (diff) | |
download | rockbox-3bb78b468d32289f4d83fbd4f95b7dd9fc93c983.tar.gz rockbox-3bb78b468d32289f4d83fbd4f95b7dd9fc93c983.zip |
Resume audio after user selects a new song
Music currently doesn't begin playing after the user has selected a new song from a playlist or using the database/file browser, unless another item was already playing or the previous player state was "stopped" but not "paused". This results in an inconsistent user experience. The user's likely intention is to immediately listen to a song they select regardless of the previous player state.
Change-Id: I574c3fe5c12fee544da0569182fc9573d307ac2f
-rw-r--r-- | apps/playlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 2c3fa4958e..3fa8f80729 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2611,6 +2611,7 @@ void playlist_start(int start_index, unsigned long elapsed, | |||
2611 | playlist->started = true; | 2611 | playlist->started = true; |
2612 | sync_control(playlist, false); | 2612 | sync_control(playlist, false); |
2613 | audio_play(elapsed, offset); | 2613 | audio_play(elapsed, offset); |
2614 | audio_resume(); | ||
2614 | } | 2615 | } |
2615 | 2616 | ||
2616 | /* Returns false if 'steps' is out of bounds, else true */ | 2617 | /* Returns false if 'steps' is out of bounds, else true */ |