size_t count
Definition core.c:403
void randomizer_Clear(struct randomizer *randomizer)
Clear the randomizer.
Definition randomizer.c:538
bool randomizer_Add(struct randomizer *randomizer, vlc_playlist_item_t *items[], size_t count)
Add items to the randomizer.
Definition randomizer.c:424
vlc_playlist_item_t * randomizer_PeekPrev(struct randomizer *randomizer)
Peek the previous item (without changing the current one).
Definition randomizer.c:378
void randomizer_Destroy(struct randomizer *randomizer)
Destroy a randomizer.
Definition randomizer.c:275
void randomizer_Reshuffle(struct randomizer *randomizer)
Start a new random cycle.
Definition randomizer.c:301
void randomizer_SetLoop(struct randomizer *randomizer, bool loop)
Enable or disable "loop" mode.
Definition randomizer.c:281
bool randomizer_HasPrev(struct randomizer *randomizer)
Indicate whether there is a previous item.
Definition randomizer.c:356
vlc_playlist_item_t * randomizer_Prev(struct randomizer *randomizer)
Go back to the previous item.
Definition randomizer.c:404
void randomizer_Remove(struct randomizer *randomizer, vlc_playlist_item_t *const items[], size_t count)
Remove items from the randomizer.
Definition randomizer.c:528
void randomizer_Init(struct randomizer *randomizer)
Initialize an empty randomizer.
Definition randomizer.c:260
bool randomizer_HasNext(struct randomizer *randomizer)
Indicate whether there is a next item.
Definition randomizer.c:372
bool randomizer_Count(struct randomizer *randomizer)
Return the number of items in the randomizer.
Definition randomizer.c:295
vlc_playlist_item_t * randomizer_Next(struct randomizer *randomizer)
Go back to the next item.
Definition randomizer.c:413
void randomizer_Select(struct randomizer *randomizer, const vlc_playlist_item_t *item)
Force the selection of a specific item.
Definition randomizer.c:469
vlc_playlist_item_t * randomizer_PeekNext(struct randomizer *randomizer)
Peek the next item (without changing the current one).
Definition randomizer.c:386
#define VLC_VECTOR(type)
Vector struct body.
Definition vlc_vector.h:66
Playlist helper to manage random playback.
Definition randomizer.h:39
unsigned short xsubi[3]
Definition randomizer.h:41
size_t next
Definition randomizer.h:44
size_t head
Definition randomizer.h:43
struct randomizer::@119 items
size_t history
Definition randomizer.h:45
bool loop
Definition randomizer.h:42
This file is a collection of common definitions and types.
This provides convenience helpers for vectors.