chiark / gitweb /
Don't keep audio files open except when they are actually being read
[disorder] / lib / queue.h
index 72e38769726442557231928b0d28a2743ebdabf2..c287ebe950afd4eb9ce55e989be998c6c1713796 100644 (file)
@@ -188,6 +188,13 @@ struct queue_entry {
   /** @brief How much of track has been played so far (seconds) */
   long sofar;
 
+  /** @brief True if track preparation is underway
+   *
+   * This is set when a decoder has been started and is expected to connect to
+   * the speaker, but the speaker has not sent as @ref SM_ARRIVED message back
+   * yet. */
+  int preparing;
+
   /** @brief True if decoder is connected to speaker 
    *
    * This is not a @ref playing_state for a couple of reasons