diff options
author | Moshe Piekarski <dev.rockbox@melachim.net> | 2021-10-31 02:56:46 -0400 |
---|---|---|
committer | Moshe Piekarski <dev.rockbox@melachim.net> | 2021-11-05 09:20:04 -0400 |
commit | 13ac48562544eada909ee39a63d5b87afe51b219 (patch) | |
tree | ef8440cca0535d2a15eb3b9e764095345c7ce7b7 /apps/playback.c | |
parent | 22c2e0a7c2be5bdc4a8ca0662c561454f5fb623a (diff) | |
download | rockbox-13ac48562544eada909ee39a63d5b87afe51b219.tar.gz rockbox-13ac48562544eada909ee39a63d5b87afe51b219.zip |
Add single playback mode
(FS#482)
Change-Id: I8b4c3e4ffb6975122153e82f2b9848c382195163
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index 5a6f18735b..1c5a7a4c9d 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -2396,6 +2396,14 @@ static void audio_finalise_track_change(void) | |||
2396 | 2396 | ||
2397 | id3_write(PLAYING_ID3, track_id3); | 2397 | id3_write(PLAYING_ID3, track_id3); |
2398 | 2398 | ||
2399 | if (global_settings.single_mode) | ||
2400 | if ( ((skip_pending == TRACK_SKIP_AUTO) || (skip_pending == TRACK_SKIP_AUTO_NEW_PLAYLIST)) | ||
2401 | && (global_settings.party_mode == 0) ) | ||
2402 | { | ||
2403 | play_status = PLAY_PAUSED; | ||
2404 | pcmbuf_pause(true); | ||
2405 | } | ||
2406 | |||
2399 | /* The skip is technically over */ | 2407 | /* The skip is technically over */ |
2400 | skip_pending = TRACK_SKIP_NONE; | 2408 | skip_pending = TRACK_SKIP_NONE; |
2401 | 2409 | ||