queue/PlaylistEdit: shuffle appended songs only within its priority group

Fixes #165.
This commit is contained in:
Max Kellermann
2017-12-02 17:08:20 +01:00
parent 4a3059f509
commit 478180ebe4
4 changed files with 20 additions and 6 deletions

View File

@@ -356,11 +356,12 @@ struct Queue {
void ShuffleOrderFirst(unsigned start, unsigned end);
/**
* Shuffles the virtual order of the last song in the specified
* (order) range. This is used in random mode after a song has been
* appended by queue_append().
* Shuffles the virtual order of the last song in the
* specified (order) range; only songs which match this song's
* priority are considered. This is used in random mode after
* a song has been appended by Append().
*/
void ShuffleOrderLast(unsigned start, unsigned end);
void ShuffleOrderLastWithPriority(unsigned start, unsigned end);
/**
* Shuffles a (position) range in the queue. The songs are physically