X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/16fb2830d52c1420afdee555a566d72a065d9616..417ef7de00568897d331d282478d93b323574f8c:/lib/queue.h diff --git a/lib/queue.h b/lib/queue.h index c86cc7c..72e3876 100644 --- a/lib/queue.h +++ b/lib/queue.h @@ -188,7 +188,14 @@ struct queue_entry { /** @brief How much of track has been played so far (seconds) */ long sofar; - /** @brief True if decoder is connected to speaker */ + /** @brief True if decoder is connected to speaker + * + * This is not a @ref playing_state for a couple of reasons + * - it is orthogonal to @ref playing_started and @ref playing_unplayed + * - it would have to be hidden to other users of @c queue_entry + * + * For non-raw tracks this should always be zero. + */ int prepared; /* For DISORDER_PLAYER_PAUSES only: */ @@ -203,6 +210,9 @@ struct queue_entry { /** @brief Owning queue (for Disobedience only) */ struct queuelike *ql; + + /** @brief Decoder (or player) process ID */ + pid_t pid; }; void queue_insert_entry(struct queue_entry *b, struct queue_entry *n);