• Max Kellermann's avatar
    queue: added queue_shuffle_order() · 3a1de741
    Max Kellermann authored
    The function shuffles the virtual order of songs, but does not move
    them physically.  This is used in random mode.
    
    The new function replaces playlist.c's randomizeOrder() function,
    which was aware of playlist.current and playlist.queued.  The latter
    is always -1 anyway, and the former as preserved by the caller, by
    converting playlist.current to a position, and then back to an order
    number.
    3a1de741
queue.c 5.7 KB