summaryrefslogtreecommitdiff
path: root/ldoc-stubs/queue.lua
blob: 2d6a2a2912f408b60108c5f1c5d08132d90806d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- Properties and functions for inspecting and manipulating the track playback queue
-- @module queue

local queue = {}

--- The index in the queue of the currently playing track. This may be zero if the queue is empty.
-- @see types.Property
queue.position = types.Property

--- The total number of tracks in the queue, including tracks which have already been played.
-- @see types.Property
queue.size = types.Property

--- Determines whether or not the queue will be restarted after the final track is played.
-- @see types.Property
queue.replay = types.Property

--- Determines whether, when progressing to the next track in the queue, the next track will be chosen randomly. The random selection algorithm used is a Miller Shuffle, which guarantees that no repeat selections will be made until every item in the queue has been played.
-- @see types.Property
queue.random = types.Property

--- Moves forward in the play queue, looping back around to the beginning if repeat is on.
function queue.next() end

--- Moves backward in the play queue, looping back around to the end if repeat is on.
function queue.previous() end

return queue