feat: cycle the queue through track shuffle, album shuffle and off

North on the now-playing screen, or s anywhere, shuffles what has not
played yet. Off goes back to the order the tracks were queued in and
carries on after the playing track. Tracks queued while shuffled go to
random positions, an album as one block under album shuffle.

The player reorders its own list under its lock and keeps a track it
already handed to playbin next, so playback stays gapless. Each reorder
bumps a queue generation that track and picture events carry, and the
app drops an event sent before the last reorder. The saved queue keeps
the original order and the mode; older files load unshuffled.
This commit is contained in:
Ansho Rei
2026-11-05 18:57:56 +01:00
parent 7b2fe7c84e
commit 3d91739447
8 changed files with 356 additions and 45 deletions
-1
View File
@@ -10,7 +10,6 @@ mod palette;
mod player;
mod prompts;
mod saved_queue;
#[cfg_attr(not(test), expect(dead_code, reason = "wired into the queue by 7ff72a1"))]
mod shuffle;
mod subsonic;