summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-02-15 14:01:39 +0100
committerSolomon Peachy <pizza@shaftnet.org>2021-02-17 11:32:32 +0000
commit69746d840086c3e9e4499c3c19257cd981a9203a (patch)
tree5129d88b71cf73988343af4665737215c8c2f758
parent422aa56243c8c65d1414afa08e5ce2cade79ad2d (diff)
downloadrockbox-69746d840086c3e9e4499c3c19257cd981a9203a.tar.gz
rockbox-69746d840086c3e9e4499c3c19257cd981a9203a.zip
Always resume audio after user picks a new song from a playlist
Music currently doesn't begin playing after the user has selected a new song in a playlist, 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 the song they select for playback regardless of the previous player state. Change-Id: I68a8da01b06a81d8c3b61e351710431152bfdfaa
-rw-r--r--apps/playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 2b94a13bca..c64fc229b5 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -2608,6 +2608,7 @@ void playlist_start(int start_index, unsigned long elapsed,
2608 playlist->started = true; 2608 playlist->started = true;
2609 sync_control(playlist, false); 2609 sync_control(playlist, false);
2610 audio_play(elapsed, offset); 2610 audio_play(elapsed, offset);
2611 audio_resume();
2611} 2612}
2612 2613
2613/* Returns false if 'steps' is out of bounds, else true */ 2614/* Returns false if 'steps' is out of bounds, else true */