From 69d08be0830966175b92d68ece8ad0119898fef2 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 30 Nov 2021 21:02:32 +0100 Subject: Additional Single Mode options In addition to the existing behavior of pausing after each song, this adds options to pause after playing current: Album, Album Artist, Artist, Composer, Grouping / Work, or Genre. Allows you, for example, to only listen to the remaining movements of a classical work without having to purge your playlist of any upcoming songs. Change-Id: If18f4a5d139320026cc5fcc9adf29dd8e4e028a8 --- apps/settings.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index 79b47f6a0f..b3c31476e3 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -108,6 +108,18 @@ enum NUM_REPEAT_MODES }; +/* single mode options */ +enum { + SINGLE_MODE_OFF = 0, + SINGLE_MODE_TRACK, + SINGLE_MODE_ALBUM, + SINGLE_MODE_ALBUM_ARTIST, + SINGLE_MODE_ARTIST, + SINGLE_MODE_COMPOSER, + SINGLE_MODE_GROUPING, + SINGLE_MODE_GENRE +}; + enum { QUEUE_HIDE = 0, @@ -476,7 +488,8 @@ struct user_settings int default_codepage; /* set default codepage for tag conversion */ bool hold_lr_for_scroll_in_list; /* hold L/R scrolls the list left/right */ bool play_selected; /* Plays selected file even in shuffle mode */ - bool single_mode; /* single mode - stop after every track */ + int single_mode; /* single mode - stop after every track, album, album artist, + artist, composer, work, or genre */ bool party_mode; /* party mode - unstoppable music */ bool audioscrobbler; /* Audioscrobbler logging */ bool cuesheet; -- cgit v1.2.3