|
TB2026-YDS Firmware
|
Functions | |
| esp_err_t | playlist_sync (void) |
| (Re)bind the playlist to the current storage index. | |
| esp_err_t | playlist_current (playlist_track_t *out) |
| Read the current track without changing the position. | |
| esp_err_t | playlist_next (playlist_track_t *out) |
| Advance to the next track and return it. | |
| esp_err_t | playlist_prev (playlist_track_t *out) |
| Step to the previous track and return it. Mirror of playlist_next. | |
| esp_err_t | playlist_select (size_t index, playlist_track_t *out) |
| Jump to a specific storage track and make it current. | |
| esp_err_t | playlist_random (playlist_track_t *out) |
| Re-shuffle the play order and restart at its first track. | |
| size_t | playlist_queue_len (void) |
| Number of tracks from the current one onward (current + upcoming); 0 if empty/not ready. | |
| esp_err_t | playlist_queue_at (size_t row, playlist_track_t *out) |
Read the queue entry at row (0 = current track) without changing the position. | |
| esp_err_t | playlist_queue_move_up (size_t row) |
Move the upcoming track at row one step earlier in the queue. | |
| esp_err_t | playlist_queue_move_down (size_t row) |
Move the upcoming track at row one step later in the queue. | |
| esp_err_t | playlist_queue_remove (size_t row) |
Remove the upcoming track at row from the play order for this session. | |
| void | playlist_set_repeat (playlist_repeat_t mode) |
| Set the repeat mode. Default PLAYLIST_REPEAT_ALL. | |
| playlist_repeat_t | playlist_get_repeat (void) |
| Current repeat mode (for the UI and the transport's end-of-track policy). | |
| void | playlist_set_shuffle (bool on) |
| Turn shuffle on or off. Default off. | |
| bool | playlist_get_shuffle (void) |
| Whether shuffle is on. | |