diff --git a/src/sound_sndio.c b/src/sound_sndio.c index eeef5d5..9458248 100644 --- a/src/sound_sndio.c +++ b/src/sound_sndio.c @@ -14,6 +14,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include #include #include #include @@ -24,7 +25,6 @@ static struct sio_hdl *hdl; static int init(int *rate, int *format) { struct sio_par par, askpar; - struct xmp_options *opt = &ctx->o; hdl = sio_open(NULL, SIO_PLAY, 0); if (hdl == NULL) { @@ -82,7 +82,7 @@ static void deinit() hdl = NULL; } -static void play(void *b, int len) +static void play(void *buf, int len) { if (b != NULL) { sio_write(hdl, buf, len); @@ -106,7 +106,7 @@ struct sound_driver sound_sndio = { "OpenBSD sndio", NULL, init, - deint, + deinit, play, flush, onpause,