chiark / gitweb /
speaker beforepoll() now gets to modify the timeout. This allows
[disorder] / server / speaker.c
index 41a12e507dc60d680d76cc55de7ded744f47c315..19f88b27a6d40f37f14abd98299ce407e10e89fc 100644 (file)
@@ -432,7 +432,7 @@ static void mainloop(void) {
        * instead, but the post-poll code will cope even if it's
        * device_closed. */
       if(device_state == device_open)
-        backend->beforepoll();
+        backend->beforepoll(&timeout);
     }
     /* If any other tracks don't have a full buffer, try to read sample data
      * from them.  We do this last of all, so that if we run out of slots,