X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/6d2d327ca57fefaddceba10eb323451f8150e95d..fa7d59804e98cc73f0ab3ed96166889f1767d4db:/server/speaker-alsa.c diff --git a/server/speaker-alsa.c b/server/speaker-alsa.c index 80395f3..41e53b2 100644 --- a/server/speaker-alsa.c +++ b/server/speaker-alsa.c @@ -20,11 +20,9 @@ /** @file server/speaker-alsa.c * @brief Support for @ref BACKEND_ALSA */ -#include +#include "common.h" -#if API_ALSA - -#include "types.h" +#if HAVE_ALSA_ASOUNDLIB_H #include #include @@ -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. */