change all Mpd.GetState </> psPlay/psStop to (!)Mpd.isPlaying()
This commit is contained in:
@@ -118,6 +118,8 @@ namespace MPD
|
||||
void Shuffle() const;
|
||||
void ClearPlaylist() const;
|
||||
|
||||
bool isPlaying() const { return GetState() > psStop; }
|
||||
|
||||
PlayerState GetState() const { return isConnected && itsCurrentStatus ? PlayerState(itsCurrentStatus->state) : psUnknown; }
|
||||
bool GetRepeat() const { return isConnected && itsCurrentStatus ? itsCurrentStatus->repeat : 0; }
|
||||
bool GetRandom() const { return isConnected && itsCurrentStatus ? itsCurrentStatus->random : 0; }
|
||||
|
||||
Reference in New Issue
Block a user