MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsPlaying

Method IsPlaying

src/music_gui.cpp:297–300  ·  view source on GitHub ↗

Is the player getting music right now? */

Source from the content-addressed store, hash-verified

295
296/** Is the player getting music right now? */
297bool MusicSystem::IsPlaying() const
298{
299 return _settings_client.music.playing && !this->active_playlist.empty();
300}
301
302/** Is shuffle mode enabled? */
303bool MusicSystem::IsShuffle() const

Callers 5

CheckStatusMethod · 0.95
GetCurrentSongMethod · 0.95
PlaylistAddMethod · 0.95
PlaylistRemoveMethod · 0.95
DrawWidgetMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected