/*
* This file is part of DisOrder.
- * Copyright (C) 2004-2008 Richard Kettlewell
+ * Copyright (C) 2004-2009 Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/** @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: */
/** @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);
char *queue_marshall(const struct queue_entry *q);
/* marshall @q@ into a UTF-8 string */
+void queue_free(struct queue_entry *q, int rest);
+
#endif /* QUEUE_H */
/*