* Get set index from current playlist position. * @return current set index, or UINT_MAX if nothing is selected. */
| 195 | * @return current set index, or UINT_MAX if nothing is selected. |
| 196 | */ |
| 197 | uint MusicSystem::GetSetIndex() |
| 198 | { |
| 199 | return static_cast<size_t>(this->playlist_position) < this->active_playlist.size() |
| 200 | ? this->active_playlist[this->playlist_position].set_index |
| 201 | : UINT_MAX; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Enable shuffle mode. |