MPD
|
#include "playlist.h"
Go to the source code of this file.
Functions | |
struct song * | playlist_get_queued_song (struct playlist *playlist) |
Returns the song object which is currently queued. | |
void | playlist_update_queued_song (struct playlist *playlist, const struct song *prev) |
Updates the "queued song". | |
void | playlist_play_order (struct playlist *playlist, int orderNum) |
Returns the song object which is currently queued.
Returns none if there is none (yet?) or if MPD isn't playing.
void playlist_play_order | ( | struct playlist * | playlist, |
int | orderNum | ||
) |
Updates the "queued song".
Calculates the next song according to the current one (if MPD isn't playing, it takes the first song), and queues this song. Clears the old queued song if there was one.
prev | the song which was previously queued, as determined by playlist_get_queued_song() |