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
This commit is contained in:
Christian Soffke 2021-11-30 21:02:32 +01:00 committed by Aidan MacDonald
parent 8060c79775
commit 69d08be083
6 changed files with 76 additions and 11 deletions

View file

@ -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;