chiark / gitweb /
Don't keep audio files open except when they are actually being read
[disorder] / lib / speaker-protocol.h
index 3b21f0a8ef8821f21f5a25a3fa844e2a1964c520..24fc970587d7f748e1b6aa3db3e23a9fe2b58d69 100644 (file)
@@ -43,6 +43,7 @@ struct speaker_message {
    * - @ref SM_FINISHED
    * - @ref SM_PLAYING
    * - @ref SM_UNKNOWN
+   * - @ref SM_ARRIVED
    */
   int type;
 
@@ -102,6 +103,9 @@ struct speaker_message {
 /** @brief Cancelled track @c id which wasn't playing */
 #define SM_STILLBORN 133
 
+/** @brief A connection for track @c id arrived */
+#define SM_ARRIVED 134
+
 void speaker_send(int fd, const struct speaker_message *sm);
 /* Send a message. */