VLC 4.0.0-dev
Loading...
Searching...
No Matches
randomizer.h File Reference
Include dependency graph for randomizer.h:

Go to the source code of this file.

Data Structures

struct  randomizer
 Playlist helper to manage random playback. More...
 

Typedefs

typedef struct vlc_playlist_item vlc_playlist_item_t
 

Functions

void randomizer_Init (struct randomizer *randomizer)
 Initialize an empty randomizer.
 
void randomizer_Destroy (struct randomizer *randomizer)
 Destroy a randomizer.
 
void randomizer_SetLoop (struct randomizer *randomizer, bool loop)
 Enable or disable "loop" mode.
 
bool randomizer_Count (struct randomizer *randomizer)
 Return the number of items in the randomizer.
 
void randomizer_Reshuffle (struct randomizer *randomizer)
 Start a new random cycle.
 
bool randomizer_HasPrev (struct randomizer *randomizer)
 Indicate whether there is a previous item.
 
bool randomizer_HasNext (struct randomizer *randomizer)
 Indicate whether there is a next item.
 
vlc_playlist_item_trandomizer_PeekPrev (struct randomizer *randomizer)
 Peek the previous item (without changing the current one).
 
vlc_playlist_item_trandomizer_PeekNext (struct randomizer *randomizer)
 Peek the next item (without changing the current one).
 
vlc_playlist_item_trandomizer_Prev (struct randomizer *randomizer)
 Go back to the previous item.
 
vlc_playlist_item_trandomizer_Next (struct randomizer *randomizer)
 Go back to the next item.
 
void randomizer_Select (struct randomizer *randomizer, const vlc_playlist_item_t *item)
 Force the selection of a specific item.
 
bool randomizer_Add (struct randomizer *randomizer, vlc_playlist_item_t *items[], size_t count)
 Add items to the randomizer.
 
void randomizer_Remove (struct randomizer *randomizer, vlc_playlist_item_t *const items[], size_t count)
 Remove items from the randomizer.
 
void randomizer_Clear (struct randomizer *randomizer)
 Clear the randomizer.
 

Typedef Documentation

◆ vlc_playlist_item_t