* Remove all songs from the current custom playlist. * Effectively stops playback too. */
| 396 | * Effectively stops playback too. |
| 397 | */ |
| 398 | void MusicSystem::PlaylistClear() |
| 399 | { |
| 400 | if (!this->IsCustomPlaylist()) return; |
| 401 | |
| 402 | this->standard_playlists[this->selected_playlist].clear(); |
| 403 | this->ChangePlaylist(this->selected_playlist); |
| 404 | |
| 405 | this->SaveCustomPlaylist(this->selected_playlist); |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * Change playlist position pointer by the given offset, making sure to keep it within valid range. |
no test coverage detected