From 688880bc0b22d13321da62ae93363e4b85846f68 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jan 2009 14:00:51 +0100 Subject: queue: added queue_shuffle_order_last() This function shuffles the last song of a range. This is used by addSongToPlaylist(). --- src/queue.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/queue.h') diff --git a/src/queue.h b/src/queue.h index b355a6a3e..b43e9c1dd 100644 --- a/src/queue.h +++ b/src/queue.h @@ -319,6 +319,14 @@ queue_restore_order(struct queue *queue) void queue_shuffle_order(struct queue *queue); +/** + * 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(). + */ +void +queue_shuffle_order_last(struct queue *queue, unsigned start, unsigned end); + /** * Shuffles a (position) range in the queue. The songs are physically * shuffled, not by using the "order" mapping. -- cgit v1.2.3