| 38 | void shuffle() { std::shuffle(trackList.begin(), trackList.end(), rng); } |
| 39 | |
| 40 | void play(PlayList list, PlayMode mode) override |
| 41 | { |
| 42 | if (!playlistsLoaded) |
| 43 | { |
| 44 | LogWarning("JukeBox::play() called without any playlists loaded"); |
| 45 | return; |
| 46 | } |
| 47 | if (this->list == list) |
| 48 | return; |
| 49 | this->list = list; |
| 50 | if (this->list == PlayList::None) |
| 51 | { |
| 52 | this->stop(); |
| 53 | } |
| 54 | else |
| 55 | { |
| 56 | this->play(playlists[list], mode); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void play(const std::vector<UString> &tracks, PlayMode mode) override |
| 61 | { |
nothing calls this directly
no test coverage detected