Skip to content
Permalink
Browse files

Add sndio plugin. Closes: #98.

  • Loading branch information...
jlindgren90 committed Jun 17, 2012
1 parent e1396a5 commit 02706adf601293f36fb0c8f2cd424620a3ea889c
Showing with 510 additions and 0 deletions.
  1. +21 −0 configure.ac
  2. +1 −0 extra.mk.in
  3. +12 −0 src/sndio/Makefile
  4. +476 −0 src/sndio/sndio.c
@@ -621,6 +621,26 @@ if test $enable_sdlout = yes ; then
OUTPUT_PLUGINS="$OUTPUT_PLUGINS sdlout"
fi

dnl *** sndio output

AC_ARG_ENABLE(sndio,
[ --disable-sndio disable sndio output plugin (default=enabled) ],
[have_sndio=$enableval],
[have_sndio=yes]
)

if test "x$have_sndio" = "xyes"; then
AC_CHECK_HEADER(sndio.h,, have_sndio=no)
if test x$have_sndio = xyes; then
AC_CHECK_LIB(sndio, sio_open, haves_sndio=yes, have_sndio=no)
fi
fi

if test "x$have_sndio" = "xyes"; then
OUTPUT_PLUGINS="$OUTPUT_PLUGINS sndio"
SNDIO_LIBS="-lsndio"
AC_SUBST(SNDIO_LIBS)
fi

dnl *** amidi-plug (note: to avoid checking twice ALSA, this should appear somewhere after the alsa output plugin check)

@@ -1052,6 +1072,7 @@ echo " Output Plugins"
echo " --------------"
echo " Open Sound System (oss4): $enable_oss4"
echo " Advanced Linux Sound Arch. (alsa): $have_alsa"
echo " Sndio (sndio): $have_sndio"
echo " PulseAudio (pulse): $have_pulse"
echo " Jack Audio Connection Kit (jack): $enable_jack"
echo " Simple DirectMedia Layer (sdlout): $enable_sdlout"
@@ -93,6 +93,7 @@ SIDPLAY2_CFLAGS ?= @SIDPLAY2_CFLAGS@
SIDPLAY2_LIBS ?= @SIDPLAY2_LIBS@
SNDFILE_CFLAGS ?= @SNDFILE_CFLAGS@
SNDFILE_LIBS ?= @SNDFILE_LIBS@
SNDIO_LIBS ?= @SNDIO_LIBS@
VORBIS_CFLAGS ?= @VORBIS_CFLAGS@
VORBIS_LIBS ?= @VORBIS_LIBS@
WAVPACK_CFLAGS ?= @WAVPACK_CFLAGS@
@@ -0,0 +1,12 @@
PLUGIN = sndio${PLUGIN_SUFFIX}

SRCS = sndio.c

include ../../buildsys.mk
include ../../extra.mk

plugindir := ${plugindir}/${OUTPUT_PLUGIN_DIR}

CFLAGS += ${PLUGIN_CFLAGS}
CPPFLAGS += ${PLUGIN_CPPFLAGS} ${GTK_CFLAGS} ${GLIB_CFLAGS} -I../..
LIBS += ${GTK_LIBS} ${GLIB_LIBS} ${SNDIO_LIBS}

0 comments on commit 02706ad

Please sign in to comment.
You can’t perform that action at this time.