Save consume and single oneshot as string

Consume and single oneshot should be saved as string.

closes #1853
This commit is contained in:
jcorporation 2023-08-07 23:19:28 +02:00
parent ba2df05fb4
commit 9a28176d72

View File

@ -76,9 +76,9 @@ playlist_state_save(BufferedOutputStream &os, const struct playlist &playlist,
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_REPEAT "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_REPEAT "{}\n"),
(unsigned)playlist.queue.repeat); (unsigned)playlist.queue.repeat);
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_SINGLE "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_SINGLE "{}\n"),
(unsigned)playlist.queue.single); SingleToString(playlist.queue.single));
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CONSUME "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CONSUME "{}\n"),
(unsigned)playlist.queue.consume); ConsumeToString(playlist.queue.consume));
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CROSSFADE "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_CROSSFADE "{}\n"),
pc.GetCrossFade().count()); pc.GetCrossFade().count());
os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_MIXRAMPDB "{}\n"), os.Fmt(FMT_STRING(PLAYLIST_STATE_FILE_MIXRAMPDB "{}\n"),