feat(mpd): add playing-interval option

This commit is contained in:
Theo Ratkin
2025-07-29 14:04:00 -04:00
parent 0776e694df
commit 03eba63215
5 changed files with 13 additions and 3 deletions
+3
View File
@@ -28,6 +28,8 @@ class MPD : public ALabel {
unsigned timeout_;
unsigned playing_interval_;
detail::unique_connection connection_;
detail::unique_status status_;
@@ -59,6 +61,7 @@ class MPD : public ALabel {
inline bool stopped() const { return connection_ && state_ == MPD_STATE_STOP; }
inline bool playing() const { return connection_ && state_ == MPD_STATE_PLAY; }
inline bool paused() const { return connection_ && state_ == MPD_STATE_PAUSE; }
inline unsigned playing_interval() const { return playing_interval_; }
};
#if !defined(MPD_NOINLINE)