chiark / gitweb /
"make distcheck" now passes
[disorder] / server / speaker-alsa.c
index 80395f3bcc0abfcf939350295490c2ceecb6bd10..41e53b24b971eaa211ff8753399a1d2610becc77 100644 (file)
 /** @file server/speaker-alsa.c
  * @brief Support for @ref BACKEND_ALSA */
 
-#include <config.h>
+#include "common.h"
 
-#if API_ALSA
-
-#include "types.h"
+#if HAVE_ALSA_ASOUNDLIB_H
 
 #include <unistd.h>
 #include <poll.h>
@@ -219,7 +217,7 @@ static size_t alsa_play(size_t frames) {
 static int alsa_slots, alsa_nslots = -1;
 
 /** @brief Fill in poll fd array for ALSA */
-static void alsa_beforepoll(void) {
+static void alsa_beforepoll(int attribute((unused)) *timeoutp) {
   /* We send sample data to ALSA as fast as it can accept it, relying on
    * the fact that it has a relatively small buffer to minimize pause
    * latency. */