git-svn-id: https://svn.musicpd.org/mpd/trunk@2884 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
9a18f61d48
commit
9999a20c12
22
configure.ac
22
configure.ac
@ -31,11 +31,11 @@ if test x$CC = xgcc; then
|
|||||||
fi
|
fi
|
||||||
MPD_LIBS=""
|
MPD_LIBS=""
|
||||||
|
|
||||||
AC_ARG_ENABLE(audio,[ --disable-audio disable support for playing],,enable_ao=yes)
|
AC_ARG_ENABLE(ao,[ --disable-ao disable support for libao],,enable_ao=yes)
|
||||||
AC_ARG_ENABLE(shout,[ --disable-shout disable support for streaming through shout],,enable_shout=yes)
|
AC_ARG_ENABLE(shout,[ --disable-shout disable support for streaming through shout],,enable_shout=yes)
|
||||||
AC_ARG_ENABLE(iconv,[ --disable-iconv disable iconv support],,enable_iconv=yes)
|
AC_ARG_ENABLE(iconv,[ --disable-iconv disable iconv support],,enable_iconv=yes)
|
||||||
AC_ARG_ENABLE(ipv6,[ --disable-ipv6 disable IPv6 support],,enable_ipv6=yes)
|
AC_ARG_ENABLE(ipv6,[ --disable-ipv6 disable IPv6 support],,enable_ipv6=yes)
|
||||||
AC_ARG_ENABLE(alsa,[ --disable-oss disable OSS support],,enable_oss=yes)
|
AC_ARG_ENABLE(oss,[ --disable-oss disable OSS support],,enable_oss=yes)
|
||||||
AC_ARG_ENABLE(alsa,[ --disable-alsa disable ALSA Mixer support],,enable_alsa=yes)
|
AC_ARG_ENABLE(alsa,[ --disable-alsa disable ALSA Mixer support],,enable_alsa=yes)
|
||||||
AC_ARG_ENABLE(ogg,[ --disable-ogg disable ogg support],,enable_ogg=yes)
|
AC_ARG_ENABLE(ogg,[ --disable-ogg disable ogg support],,enable_ogg=yes)
|
||||||
AC_ARG_ENABLE(flac,[ --disable-flac disable flac support],,enable_flac=yes)
|
AC_ARG_ENABLE(flac,[ --disable-flac disable flac support],,enable_flac=yes)
|
||||||
@ -101,15 +101,13 @@ AP_maGiC_VALUE
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_ao = xyes; then
|
if test x$enable_ogg = xno; then
|
||||||
if test x$enable_ogg = xno; then
|
AC_MSG_WARN("disabling shout streaming support since vorbis was not found")
|
||||||
AC_MSG_WARN("disabling shout streaming support since vorbis was not found")
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_ao = xyes; then
|
if test x$enable_ao = xyes; then
|
||||||
XIPH_PATH_AO(MPD_LIBS="$MPD_LIBS $AO_LIBS" MPD_CFLAGS="$MPD_CFLAGS $AO_CFLAGS",AC_MSG_ERROR(Must have libao installed!!!))
|
XIPH_PATH_AO(MPD_LIBS="$MPD_LIBS $AO_LIBS" MPD_CFLAGS="$MPD_CFLAGS $AO_CFLAGS",AC_MSG_ERROR(Must have libao installed!!!))
|
||||||
AC_DEFINE(HAVE_AUDIO, 1, [Define to play audio])
|
AC_DEFINE(HAVE_AO, 1, [Define to play with ao])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_shout = xyes; then
|
if test x$enable_shout = xyes; then
|
||||||
@ -535,9 +533,15 @@ fi
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Audio Format Support:"
|
echo "Audio Format Support:"
|
||||||
if test x$enable_ao = xyes; then
|
if test x$enable_ao = xyes; then
|
||||||
echo "Playing audio .................enabled"
|
echo "Playing audio via libao .......enabled"
|
||||||
else
|
else
|
||||||
echo "Playing audio .................disabled"
|
echo "Playing audio via libao .......disabled"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$enable_oss = xyes; then
|
||||||
|
echo "Playing audio via OSS .........enabled"
|
||||||
|
else
|
||||||
|
echo "Playing audio via OSS .........disabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$enable_shout = xyes; then
|
if test x$enable_shout = xyes; then
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../audioOutput.h"
|
#include "../audioOutput.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_AO
|
||||||
|
|
||||||
#include "../conf.h"
|
#include "../conf.h"
|
||||||
#include "../log.h"
|
#include "../log.h"
|
||||||
|
|
||||||
@ -237,3 +240,20 @@ AudioOutputPlugin aoPlugin =
|
|||||||
audioOutputAo_closeDevice,
|
audioOutputAo_closeDevice,
|
||||||
NULL /* sendMetadataFunc */
|
NULL /* sendMetadataFunc */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
AudioOutputPlugin aoPlugin =
|
||||||
|
{
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user