|
myMPD
Internal API documentation
|
Functions to select random songs or albums. More...
#include "src/lib/mympd_state.h"

Go to the source code of this file.
Data Structures | |
| struct | t_random_add_constraints |
Functions | |
| unsigned | random_select_albums (struct t_partition_state *partition_state, struct t_stickerdb_state *stickerdb, struct t_cache *album_cache, unsigned add_albums, struct t_list *queue_list, struct t_list *add_list, struct t_random_add_constraints *constraints) |
| unsigned | random_select_songs (struct t_partition_state *partition_state, struct t_stickerdb_state *stickerdb, unsigned add_songs, const char *playlist, struct t_list *queue_list, struct t_list *add_list, struct t_random_add_constraints *constraints) |
Functions to select random songs or albums.
| unsigned random_select_albums | ( | struct t_partition_state * | partition_state, |
| struct t_stickerdb_state * | stickerdb, | ||
| struct t_cache * | album_cache, | ||
| unsigned | add_albums, | ||
| struct t_list * | queue_list, | ||
| struct t_list * | add_list, | ||
| struct t_random_add_constraints * | constraints | ||
| ) |
Adds albums to the add_list
| partition_state | pointer to myMPD partition state |
| stickerdb | pointer to stickerdb state |
| album_cache | pointer to album cache |
| add_albums | number of albums expected in add_list |
| queue_list | list of current songs in mpd queue and last played |
| add_list | list to add the albums |
| constraints | constraints for album selection |
| unsigned random_select_songs | ( | struct t_partition_state * | partition_state, |
| struct t_stickerdb_state * | stickerdb, | ||
| unsigned | add_songs, | ||
| const char * | playlist, | ||
| struct t_list * | queue_list, | ||
| struct t_list * | add_list, | ||
| struct t_random_add_constraints * | constraints | ||
| ) |
Adds songs to the add_list
| partition_state | pointer to myMPD partition state |
| stickerdb | pointer to stickerdb state |
| add_songs | number of songs expected in add_list |
| playlist | playlist from which songs are added |
| queue_list | list of current songs in mpd queue and last played |
| add_list | list to add the songs |
| constraints | constraints for song selection |