Jukebox functions.
More...
Go to the source code of this file.
◆ jukebox_add_to_queue()
| bool jukebox_add_to_queue |
( |
struct t_partition_state * |
partition_state, |
|
|
struct t_cache * |
album_cache, |
|
|
unsigned |
add_songs, |
|
|
sds * |
error |
|
) |
| |
Adds songs or albums from the jukebox queue to the MPD queue and starts playing.
- Parameters
-
| partition_state | pointer to myMPD partition state |
| album_cache | pointer to album cache |
| add_songs | number of songs to add |
| error | pointer to allocated sds for error message |
- Returns
- true on success, else false
◆ jukebox_clear_all()
Public functions Clears the jukebox queue of all partitions.
- Parameters
-
| mympd_state | pointer to central myMPD state. |
◆ jukebox_disable()
Disables the jukebox timer
- Parameters
-
| partition_state | pointer to partition state |
◆ jukebox_run()
The real jukebox function. It determines if a song must be added or not and starts playing.
- Parameters
-
| mympd_state | Pointer to myMPD state |
| partition_state | Pointer to myMPD partition state |
| album_cache | Pointer to album cache |
- Returns
- true on success, else false
◆ jukebox_trigger_script()
Executes the jukebox script trigger
- Parameters
-
| mympd_state | Pointer to myMPD state |
| partition_state | Pointer to myMPD partition state |
| add_to_queue | Add entries to MPD queue |
- Returns
- true on success, else false