Fixes for OpenBSD

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 14 years ago
parent 22779c8c6b
commit ee2296adde
  1. 6
      src/sound_sndio.c

@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sndio.h>
@ -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,

Loading…
Cancel
Save