Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • xiph/libao
  • argilo/libao
  • ggarra13/libao
  • mackyle/libao
  • lanodan/libao
  • mywave82/libao
  • martinwguy/libao
7 results
Show changes
Commits on Source (203)
*.tar.gz
*.zip
ao-config
config.status
config.cache
Makefile
Makefile.in
ao.pc
aclocal.m4
autom4te.cache/
compile
config.guess
config.log
config.status
config.sub
config.guess
configure
depcomp
doc/Makefile.in
include/Makefile.in
include/ao/Makefile.in
include/ao/os_types.h
install-sh
libtool
ltconfig
ltmain.sh
install-sh
configure
Makefile
Makefile.in
config.h
config.h.in
aclocal.m4
mkinstalldirs
missing
.deps
.libs
*.lo
*.la
default:
tags:
- docker
# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc:9
autoconf:
stage: build
before_script:
- apt-get update &&
apt-get install -y libpulse-dev zip
script:
- ./autogen.sh
- ./configure
- make
- make distcheck
language: c
addons:
apt:
packages:
libpulse-dev
script:
- ./autogen.sh
- ./configure
- make distcheck
os:
- linux
- osx
0.8.5 - March 12, 2004
1.2.1 - unreleased snapshot
- no changes yet
1.2.0 - January 27, 2014
- Added missing ao_file_extension() (see Trac #1841)
- Fixed memory leak in ao_shutdown() (see Trac #1799)
- Updated manpage libao.conf.5 (see Trac #1822)
- Corrected doc/ao_play.html (see Trac #1808)
- Latency adjustments
- Implement PulseAudio client_name (see Trac #1924)
- Other ALSA, Pulse, Roar, sndio and MacOS driver improvements
1.1.0 - February 21, 2011
- Add autofoo ld symbol versioning to build system
- Update Roar driver to latest API
- Fix Roar driver to not block on SLP lookup during probe
- Improve/correct latency setup in ALSA (see Trac #1762)
- Add missing ctype.h header in build (see Trac #1760)
- Move toward more consistent option naming across drivers
- Fix Mac OS X AUHAL support to properly handle suspend/wakeup,
headphone plug/unplug, other hardware events
- Correct ao_example.c source to not pass dangling pointer for
the matrix argument.
- Add 24 bit playback to Pulse plugin
- Fix 24 bit playback in ALSA plugin
- Fix segfaults when closing a driver that did not successfully open.
- Fix compilation of sndio plugin
- Fix building Mac OS X driver AUHAL compilation for 10.5,
restore Mac OS X 10.4 support
1.0.0 - March 25, 2010
- AO returns to active development
- Added surround channel mapping API and capability
- Update and test all drivers on modern installs
- New config file options
- Driver options may be specifid in config file
- Support for MacosX < 10.5 dropped, driver modded to AUHAL
- Build in WMM driver rather than using dlopen()
- Added Roar Audio driver
- Added OpenBSD SNDIO driver
- Work around ESD non-4096 byte write bug
- Work around aRts server crash bug
- Workaround for VIA82xx click/crackle bugs under ALSA
- Remove dead/unused drivers (solaris, alasa05, mmsound)
- Numerous patches from multiple downstreams
0.8.8 - May 24, 2007
- New win32 driver
- Few fixes and changes in autotools and configuration files.
0.8.7 - unreleased snapshot
- obsolete alsa device renamed to alsa05
- the 'alsa' device now uses the 0.9/1.0 API
- ALSA driver fixes
0.8.6 - January 11, 2005
- Added Polypaudio driver(libao-polyp 0.4)
from Lennart Poettering <mzyvonbcbylc (at) 0pointer (dot) de>
- Use esd_close() in the esd driver
- Broaden sample rate tolerance in the OSS driver for nForce
compatibility
0.8.5 - March 19, 2004
- Support now for the ALSA 1.0 API
- Can build with --disable-esd option again
- Minor build fixes
......
......@@ -14,9 +14,9 @@ Yes, there are details left out.
There are generally four steps necessary when building from CVS (i.e.,
a developer's copy):
1. cvs checkout of the sources, or cvs update. RTFM from your
favorite flavor of CVS documentation; information on the xiph.org
CVS repository can be found at http://www.xiph.org/cvs.html.
1. svn checkout of the sources, or svn update. RTFM from your
favorite flavor of SVN documentation; information on the xiph.org
code repository can be found at http://www.xiph.org/svn.
2. [re-]generate files such as "configure" and "Makefile.in" with the
GNU autoconf/automake tools. Run the "autogen.sh" script to
......
......@@ -2,7 +2,7 @@
AUTOMAKE_OPTIONS = foreign 1.6 dist-zip
SUBDIRS = src include doc debian
SUBDIRS = src include doc
m4datadir = $(datadir)/aclocal
m4data_DATA = ao.m4
......@@ -10,13 +10,17 @@ m4data_DATA = ao.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ao.pc
mandir = @MANDIR@
ckportdir = $(libdir)/ckport/db
ckport_DATA = libao.ckport
man_MANS = libao.conf.5
EXTRA_DIST = README AUTHORS CHANGES COPYING libao.spec ao.m4 acinclude.m4 ao.pc.in $(man_MANS)
EXTRA_DIST = README AUTHORS CHANGES COPYING libao.spec ao.m4 acinclude.m4 as-ac-expand.m4 ao.pc.in $(ckport_DATA) $(man_MANS)
debug:
$(MAKE) clean
$(MAKE) all CFLAGS="@DEBUG@"
profile:
$(MAKE) clean
$(MAKE) all CFLAGS="@PROFILE@"
libao - A Cross-platform Audio Library, Version 0.8.5
libao - A Cross-platform Audio Library, Version 0.8.6
Originally Copyright (C) Aaron Holtzman - May 1999
Changes Copyright (C) Jack Moffitt - October 2000
Changes Copyright (C) Stan Seibert - July 2000-March 2004
More Changes Copyright (C) Jack Moffitt - October 2000
libao-pulse Copyright (C) Lennart Poettering 2004-2006
Changes Copyright (C) 2004-2005 Xiph.org Foundation
Changes Maintainer Benjamin Gerard
libao is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -28,8 +31,9 @@ supports:
* Null output
* WAV files
* OSS (Open Sound System)
* ESD (ESounD or Enlighten Sound Daemon)
* ESD (ESounD or Enlightened Sound Daemon)
* ALSA (Advanced Linux Sound Architecture)
* PulseAudio (next generation GNOME sound server)
* AIX
* Solaris (untested)
* IRIX (untested)
......@@ -40,14 +44,14 @@ Libao began life as cross-platform audio library inside of ac3dec, an
AC3 decoder by Aaron Holtzman that is part of the LiViD project. When
ogg123 (part of the command line vorbis tools) needed a way to play
audio on multiple operating systems, someone on the vorbis-dev mailing
list suggested the libao library as a possible way to add
cross-platform support to ogg123. I (Stan Seibert) downloaded the
libao library, severely hacked it up in order to make the build
process simpler and support multiple live-playback devices. (The
original code allowed one live playback driver, the wav driver, and a
null driver to be compiled into the library.) Jack Moffitt got it
supporting dynamically loaded plugins so that binary versions of libao
could be provided. The API was revised for version 0.8.0.
list suggested the libao library as a possible way to add cross-platform
support to ogg123. Stan Seibert downloaded the libao library, severely
hacked it up in order to make the build process simpler and support
multiple live-playback devices. (The original code allowed one live
playback driver, the wav driver, and a null driver to be compiled into
the library.) Jack Moffitt got it supporting dynamically loaded plugins
so that binary versions of libao could be provided. The API was revised
for version 0.8.0.
This code is being maintained by Stan Seibert (volsung@xiph.org)
and various other individuals. Please DO NOT annoy Aaron Holtzman about
......
......@@ -7,7 +7,8 @@
dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
dnl
AC_DEFUN(AM_PATH_ESD,
AC_DEFUN([AM_PATH_ESD],
[dnl
dnl Get the cflags and libraries from the esd-config script
dnl
......@@ -162,3 +163,61 @@ int main ()
AC_SUBST(ESD_LIBS)
rm -f conf.esdtest
])
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
dnl also defines GSTUFF_PKG_ERRORS on error
AC_DEFUN([PKG_CHECK_MODULES], [
succeeded=no
if test -z "$PKG_CONFIG"; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
fi
if test "$PKG_CONFIG" = "no" ; then
echo "*** The pkg-config script could not be found. Make sure it is"
echo "*** in your path, or set the PKG_CONFIG environment variable"
echo "*** to the full path to pkg-config."
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
else
PKG_CONFIG_MIN_VERSION=0.9.0
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
AC_MSG_CHECKING(for $2)
if $PKG_CONFIG --exists "$2" ; then
AC_MSG_RESULT(yes)
succeeded=yes
AC_MSG_CHECKING($1_CFLAGS)
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
AC_MSG_RESULT($$1_CFLAGS)
AC_MSG_CHECKING($1_LIBS)
$1_LIBS=`$PKG_CONFIG --libs "$2"`
AC_MSG_RESULT($$1_LIBS)
else
$1_CFLAGS=""
$1_LIBS=""
## If we have a custom action on failure, don't print errors, but
## do set a variable so people can do so.
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
ifelse([$4], ,echo $$1_PKG_ERRORS,)
fi
AC_SUBST($1_CFLAGS)
AC_SUBST($1_LIBS)
else
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
echo "*** See http://www.freedesktop.org/software/pkgconfig"
fi
fi
if test $succeeded = yes; then
ifelse([$3], , :, [$3])
else
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
fi
])
m4_include([as-ac-expand.m4])
......@@ -6,7 +6,7 @@
dnl XIPH_PATH_AO([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test for libao, and define AO_CFLAGS and AO_LIBS
dnl
AC_DEFUN(XIPH_PATH_AO,
AC_DEFUN([XIPH_PATH_AO],
[dnl
dnl Get the cflags and libraries
dnl
......
......@@ -11,4 +11,6 @@ Version: @VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lao
Libs.private: @LIBS@
Cflags: -I${includedir}
dnl as-ac-expand.m4 0.2.0
dnl autostars m4 macro for expanding directories using configure's prefix
dnl thomas@apestaart.org
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
dnl example
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
AC_DEFUN([AS_AC_EXPAND],
[
EXP_VAR=[$1]
FROM_VAR=[$2]
dnl first expand prefix and exec_prefix if necessary
prefix_save=$prefix
exec_prefix_save=$exec_prefix
dnl if no prefix given, then use /usr/local, the default prefix
if test "x$prefix" = "xNONE"; then
prefix="$ac_default_prefix"
fi
dnl if no exec_prefix given, then use prefix
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
full_var="$FROM_VAR"
dnl loop until it doesn't change anymore
while true; do
new_full_var="`eval echo $full_var`"
if test "x$new_full_var" = "x$full_var"; then break; fi
full_var=$new_full_var
done
dnl clean up
full_var=$new_full_var
AC_SUBST([$1], "$full_var")
dnl restore prefix and exec_prefix
prefix=$prefix_save
exec_prefix=$exec_prefix_save
])
#!/bin/sh
# Run this to set up the build system: configure, makefiles, etc.
# (based on the version in enlightenment's cvs)
set -e
package="libao"
olddir=`pwd`
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
cd "$srcdir"
DIE=0
echo "checking for autoconf... "
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $package."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9]\.[0-9]\).*/\1/"
VERSIONMKINT="sed -e s/[^0-9]//"
# do we need automake?
if test -r Makefile.am; then
AM_NEEDED=`fgrep AUTOMAKE_OPTIONS Makefile.am | $VERSIONGREP`
if test -z $AM_NEEDED; then
echo -n "checking for automake... "
AUTOMAKE=automake
ACLOCAL=aclocal
if ($AUTOMAKE --version < /dev/null > /dev/null 2>&1); then
echo "no"
AUTOMAKE=
else
echo "yes"
fi
else
echo -n "checking for automake $AM_NEEDED or later... "
for am in automake-$AM_NEEDED automake$AM_NEEDED automake; do
($am --version < /dev/null > /dev/null 2>&1) || continue
ver=`$am --version < /dev/null | head -n 1 | $VERSIONGREP | $VERSIONMKINT`
verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
if test $ver -ge $verneeded; then
AUTOMAKE=$am
echo $AUTOMAKE
break
fi
done
test -z $AUTOMAKE && echo "no"
echo -n "checking for aclocal $AM_NEEDED or later... "
for ac in aclocal-$AM_NEEDED aclocal$AM_NEEDED aclocal; do
($ac --version < /dev/null > /dev/null 2>&1) || continue
ver=`$ac --version < /dev/null | head -n 1 | $VERSIONGREP | $VERSIONMKINT`
verneeded=`echo $AM_NEEDED | $VERSIONMKINT`
if test $ver -ge $verneeded; then
ACLOCAL=$ac
echo $ACLOCAL
break
fi
done
test -z $ACLOCAL && echo "no"
fi
test -z $AUTOMAKE || test -z $ACLOCAL && {
echo
echo "You must have automake installed to compile $package."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
exit 1
}
fi
echo -n "checking for libtool... "
for LIBTOOLIZE in libtoolize glibtoolize nope; do
(which $LIBTOOLIZE) > /dev/null 2>&1 && break
done
if test x$LIBTOOLIZE = xnope; then
echo "nope."
LIBTOOLIZE=libtoolize
else
echo $LIBTOOLIZE
fi
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have libtool installed to compile $package."
echo "Download the appropriate package for your system,"
echo "or get the source from one of the GNU ftp sites"
echo "listed in http://www.gnu.org/order/ftp.html"
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
echo "Generating configuration files for $package, please wait...."
test -n "$srcdir" && cd "$srcdir"
echo " $ACLOCAL $ACLOCAL_FLAGS"
$ACLOCAL $ACLOCAL_FLAGS
#echo " autoheader"
#autoheader
echo " $LIBTOOLIZE --automake"
$LIBTOOLIZE --automake
echo " $AUTOMAKE --add-missing $AUTOMAKE_FLAGS"
$AUTOMAKE --add-missing $AUTOMAKE_FLAGS
echo " autoconf"
autoconf
echo "Updating build configuration files for libao, please wait...."
cd $olddir
$srcdir/configure "$@" && echo
autoreconf -isf
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/audio_out.c)
AC_INIT([libao],[1.2.2],[monty@xiph.org])
AM_INIT_AUTOMAKE([gnu 1.6])
AM_INIT_AUTOMAKE(libao,0.8.5)
AM_MAINTAINER_MODE
dnl $$$ben: Is that neccessary ? And why ?
AM_DISABLE_STATIC
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl Library versioning
LIB_CURRENT=3
LIB_REVISION=2
LIB_CURRENT=5
LIB_REVISION=1
LIB_AGE=1
AC_SUBST(LIB_CURRENT)
AC_SUBST(LIB_REVISION)
AC_SUBST(LIB_AGE)
dnl Plugin versioning. We use an integer version number much like LIB_CURRENT.
PLUGIN_VERSION=2
PLUGIN_VERSION=4
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
plugindir=$libdir/ao/plugins-$PLUGIN_VERSION
......@@ -26,16 +31,26 @@ dnl ====================================
dnl Check for programs
dnl ====================================
cflags_save="$CFLAGS"
AC_PROG_CC
AC_LIBTOOL_WIN32_DLL
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL
dnl ====================================
dnl Check dlopen
dnl ====================================
dnl Currently use this to disable plugin support dlfcn.h
AC_CHECK_HEADERS([dlfcn.h],
[AC_SEARCH_LIBS([dlopen],[dl],
[AC_DEFINE([HAVE_DLOPEN],[1],
[support dynamic linking loader])])])
dnl ====================================
dnl Set some general compile options
dnl ====================================
cflags_save="$CFLAGS"
ldflags_save="$LDFLAGS"
if test -z "$GCC"; then
case $host in
*-*-irix*)
......@@ -67,30 +82,58 @@ else
PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
sparc-sun-*)
PLUGIN_LDFLAGS="-export-dynamic -avoid-version"
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char"
PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char" ;;
*-darwin*)
PLUGIN_LDFLAGS="-module -avoid-version"
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore"
CFLAGS="-D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore"
PROFILE="-g -pg -D__NO_MATH_INLINES -fsigned-char -Ddlsym=dlsym_auto_underscore" ;;
*)
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
CFLAGS="-D__NO_MATH_INLINES -fsigned-char"
PROFILE="-g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
*)
PLUGIN_LDFLAGS="-export-dynamic -avoid-version"
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
esac
fi
CFLAGS="$CFLAGS $cflags_save"
DEBUG="$DEBUG $cflags_save"
PROFILE="$PROFILE $cflags_save"
LDFLAGS="$LDFLAGS $ldflags_save"
CFLAGS="$CFLAGS $cflags_save -DAO_BUILDING_LIBAO"
DEBUG="$DEBUG $cflags_save -DAO_BUILDING_LIBAO"
PROFILE="$PROFILE $cflags_save -DAO_BUILDING_LIBAO"
AC_SUBST(DEBUG)
AC_SUBST(PROFILE)
dnl =========================================
dnl Need -no-undefined for building win32 dll
dnl =========================================
dnl Should we do that for cygwin too ???
dnl I guess so but it needs to be tested.
case $host in
*-mingw*|*-cygwin*)
LIBAO_LA_LDFLAGS="-no-undefined"
;;
*)
LIBAO_LA_LDFLAGS=""
;;
esac
AC_SUBST(LIBAO_LA_LDFLAGS)
dnl ===================================
dnl Check for symbol versioning support
dnl ===================================
AC_MSG_CHECKING([if libraries can be versioned])
GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
if test "$GLD"; then
have_ld_version_script=yes
AC_MSG_RESULT(yes)
else
have_ld_version_script=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$have_ld_version_script" = "yes")
dnl ==============================
dnl Check for libraries
dnl ==============================
......@@ -111,7 +154,7 @@ case $host in
DLOPEN_FLAG='(RTLD_LAZY)'
SHARED_LIB_EXT='.sl'
;;
*openbsd* | *netbsd* | *solaris2.7)
*openbsd* | *netbsd* | *solaris2.7 | *darwin*)
DLOPEN_FLAG='(RTLD_LAZY)'
SHARED_LIB_EXT='.so'
;;
......@@ -123,17 +166,6 @@ esac
AC_DEFINE_UNQUOTED(DLOPEN_FLAG, $DLOPEN_FLAG)
AC_DEFINE_UNQUOTED(SHARED_LIB_EXT, "$SHARED_LIB_EXT")
dnl --------------------------------------------------
dnl Work around FHS stupidity
dnl --------------------------------------------------
if test "$prefix" = "/usr"; then
MANDIR='$(datadir)/man'
else
MANDIR='$(prefix)/man'
fi
AC_SUBST(MANDIR)
dnl ==============================
dnl Checks for types
dnl ==============================
......@@ -163,81 +195,115 @@ fi
AC_SUBST(SIZE16)
AC_SUBST(SIZE32)
dnl ======================================
dnl Disable default use of SLP in roar
dnl until such time as SLP doesn't block
dnl indefinitely
dnl ======================================
use_slp="no"
AC_ARG_ENABLE([roar-default-slp],
[AS_HELP_STRING(
[--enable-roar-default-slp],
[allow Roar driver to use SLP in default search])],
[use_slp="$enableval"],[use_slp="no"]
)
if test "x$use_slp" != "xyes"; then
SLP_DEF="-DROAR_LIBROAR_CONFIG_WAS_NO_SLP"
fi
AC_SUBST([SLP_DEF])
dnl ======================================
dnl Detect possible output devices
dnl ======================================
dnl Check for WMM
[have_wmm="no"]
AC_ARG_ENABLE([wmm],
[AS_HELP_STRING(
[--enable-wmm],
[include WMM output plugin @<:@default=check@:>@])],
[],[enable_wmm="check"]
)
AS_IF([test "x$enable_wmm" != "xno"],
[AC_CHECK_HEADERS([mmsystem.h],
[
AC_MSG_CHECKING([waveOut family functions])
waveout_old_LIBS="$LIBS"; LIBS="$LIBS -lwinmm"
dnl Can't use AC_SEARCH_LIBS because symbols are decorated
AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <windows.h>
#include <mmsystem.h>
int main(int na, char ** a) {
return waveOutOpen(0,0,0,0,0,0);
}
])],[
have_wmm="yes";
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_WMM],[1],[Support Windows MultiMedia])
],[
AC_MSG_RESULT([no])
LIBS="$waveout_old_LIBS"
])
],[],[#include <windows.h>])])
AM_CONDITIONAL([HAVE_WMM],[test "x$have_wmm" = "xyes"])
AS_IF([test "x${have_wmm}" = "xyes"],[WMM_LIBS="-lwinmm"],[WMM_LIBS=""])
AC_SUBST([WMM_LIBS])
dnl Check for ESD
have_esd="no";
AC_ARG_ENABLE(esd, [ --enable-esd include ESD output plugin ],
[ BUILD_ESD="$enableval" ],[ BUILD_ESD="yes" ])
if test "$BUILD_ESD" = "yes"; then
AM_PATH_ESD(0.2.8, have_esd=yes, have_esd=no)
AM_PATH_ESD(0.2.8, have_esd=yes)
fi
AM_CONDITIONAL(HAVE_ESD,test "x$have_esd" = xyes)
dnl Check for OSS
AC_CHECK_HEADERS(sys/soundcard.h)
AC_CHECK_HEADERS(machine/soundcard.h)
AM_CONDITIONAL(HAVE_OSS,test "${ac_cv_header_sys_soundcard_h}" = "yes" || test "${ac_cv_header_machine_soundcard_h}" = "yes")
have_oss="no";
AC_CHECK_HEADERS(sys/soundcard.h, have_oss=yes)
AC_CHECK_HEADERS(machine/soundcard.h, have_oss=yes)
AM_CONDITIONAL(HAVE_OSS,test "${have_oss}" = "yes")
dnl Check for ALSA 0.5.x
AC_ARG_ENABLE(alsa, [ --enable-alsa include alsa 0.5 output plugin ],
dnl Check for ALSA 0.9/1.0
have_alsa="no";
AC_ARG_ENABLE(alsa, [ --enable-alsa include alsa 0.9/1.0 output plugin ],
[ BUILD_ALSA="$enableval" ],[ BUILD_ALSA="yes" ])
AC_ARG_ENABLE(alsa-mmap,
[ --enable-alsa-mmap use mmio with alsa ],
[ BUILD_ALSAMMIO="$enableval" ],[ BUILD_ALSAMMIO="no" ])
if test "$BUILD_ALSA" = "yes"; then
AC_CHECK_LIB(asound, snd_pcm_channel_params, have_alsa=yes, have_alsa=no)
AC_CHECK_HEADER(sys/asoundlib.h, , have_alsa=no)
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
AC_CHECK_HEADER(alsa/asoundlib.h, , have_alsa=no)
if test "$BUILD_ALSAMMIO" = "yes" ; then
AC_CHECK_HEADER(sys/mman.h, have_alsammio=yes, have_alsammio=no)
fi
fi
if test "x$have_alsa" = xyes; then
ALSA_LIBS="-lasound"
if test "x$have_alsammio" = xyes; then
AC_DEFINE(USE_ALSA_MMIO)
fi
else
ALSA_LIBS=""
fi
AM_CONDITIONAL(HAVE_ALSA,test "x$have_alsa" = xyes)
AC_SUBST(ALSA_LIBS)
dnl Check for ALSA 0.9.x
AC_ARG_ENABLE(alsa09, [ --enable-alsa09 include alsa 0.9 output plugin ],
[ BUILD_ALSA09="$enableval" ],[ BUILD_ALSA09="yes" ])
AC_ARG_ENABLE(alsa09-mmap,
[ --enable-alsa09-mmap use mmio with alsa 0.9 (experimental!) ],
[ BUILD_ALSA09MMIO="$enableval" ],[ BUILD_ALSA09MMIO="no" ])
if test "$BUILD_ALSA09" = "yes"; then
AC_CHECK_LIB(asound, snd_pcm_open, have_alsa09=yes, have_alsa09=no)
AC_CHECK_HEADER(alsa/asoundlib.h, , have_alsa09=no)
if test "$BUILD_ALSA09MMIO" = "yes" ; then
AC_CHECK_HEADER(sys/mman.h, have_alsa09mmio=yes, have_alsa09mmio=no)
fi
fi
if test "x$have_alsa09" = xyes; then
ALSA09_LIBS="-lasound"
if test "x$have_alsa09mmio" = xyes; then
AC_DEFINE(USE_ALSA_MMIO)
fi
else
ALSA09_LIBS=""
fi
AM_CONDITIONAL(HAVE_ALSA09,test "x$have_alsa09" = xyes)
AC_SUBST(ALSA09_LIBS)
dnl Decide whether we need to enable the workaround for broken OSS APIs
dnl such as the OSS emulation in ALSA.
AC_ARG_ENABLE(broken-oss, [ --enable-broken-oss workaround for some OSS drivers (see README for details)],,
if test "x$have_alsa" = "xyes" -o "x$have_alsa09" = "xyes"; then
if test "x$have_alsa" = "xyes" -o "x$have_alsa" = "xyes"; then
enable_broken_oss="yes"
fi)
......@@ -248,17 +314,49 @@ fi
dnl Check for Sun audio
AC_CHECK_HEADERS(sys/audioio.h)
AM_CONDITIONAL(HAVE_SUN_AUDIO,test "${ac_cv_header_sys_audioio_h}" = yes)
have_sun="no";
AC_CHECK_HEADERS(sys/audioio.h, have_sun=yes)
AM_CONDITIONAL(HAVE_SUN_AUDIO,test "${have_sun}" = yes)
dnl Check for libsndio audio
have_sndio="no";
AC_CHECK_HEADERS(sndio.h, have_sndio=yes)
AM_CONDITIONAL(HAVE_SNDIO_AUDIO,test "${have_sndio}" = yes)
dnl Check for roaraudio
have_roar="no";
AC_CHECK_HEADERS(libroar/config.h, have_roar=yes)
if test "x$have_roar" = "xyes"; then
AC_MSG_CHECKING([if SLP lookup can be disabled in libroar])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <libroar/config.h>
int main(int a, char **b) {
#ifdef ROAR_LIBROAR_CONFIG_WAS_NO_SLP
return 0;
#else
ROAR_LIBROAR_CONFIG_WAS_NO_SLP required
#endif
}
],
[AC_MSG_RESULT([yes])],
[
AC_MSG_RESULT([no])
AC_MSG_RESULT([RoarAudio 0.4beta2 or later required to build Roar support])
have_roar="no"])])
fi
AM_CONDITIONAL(HAVE_ROAR_AUDIO,test "${have_roar}" = yes)
dnl Check for AIX audio
have_aix="no";
case $host in
*-aix*)
AC_CHECK_HEADERS(sys/audio.h)
AC_CHECK_HEADERS(sys/audio.h, have_aix=yes)
;;
esac
AM_CONDITIONAL(HAVE_AIX_AUDIO,test "x${ac_cv_header_sys_audio_h}" = xyes)
AM_CONDITIONAL(HAVE_AIX_AUDIO,test "x$have_aix" = xyes)
dnl Check for aRts
......@@ -275,21 +373,23 @@ if test "$BUILD_ARTS" = "maybe"; then
esac
fi
have_arts="no";
if test "$BUILD_ARTS" = "yes"; then
AC_PATH_PROG(ARTSC_CONFIG, artsc-config)
if test "x$ac_cv_path_ARTSC_CONFIG" != x
then
ARTS_CFLAGS=`$ac_cv_path_ARTSC_CONFIG --cflags`
ARTS_LIBS=`$ac_cv_path_ARTSC_CONFIG --libs`
PKG_CHECK_MODULES(ARTSGLIB, glib-2.0 gthread-2.0)
ARTS_CFLAGS="`$ac_cv_path_ARTSC_CONFIG --cflags` $ARTSGLIB_CFLAGS"
ARTS_LIBS="`$ac_cv_path_ARTSC_CONFIG --libs` $ARTSGLIB_LIBS"
SAVELIBS=$LIBS
LIBS="$LIBS $ARTS_LIBS"
AC_CHECK_FUNCS(arts_suspended)
LIBS=$SAVELIBS
have_arts=yes
fi
fi
AM_CONDITIONAL(HAVE_ARTS,test "x$ac_cv_path_ARTSC_CONFIG" != x)
AM_CONDITIONAL(HAVE_ARTS,test "x${have_arts}" = xyes)
AC_SUBST(ARTS_CFLAGS)
AC_SUBST(ARTS_LIBS)
......@@ -297,6 +397,7 @@ AC_SUBST(ARTS_LIBS)
dnl Check for IRIX
have_irix="no";
case $host in
*-*-irix*)
AC_CHECK_LIB(audio, ALwritesamps, have_irix=yes, have_irix=no)
......@@ -344,6 +445,19 @@ fi
AC_SUBST(NAS_CFLAGS)
AC_SUBST(NAS_LIBS)
dnl Check for pulse
AC_ARG_ENABLE(pulse, [ --enable-pulse include PulseAudio output plugin ],
[ BUILD_PULSE="$enableval" ],[ BUILD_PULSE="yes" ])
have_pulse="no";
if test "x$BUILD_PULSE" = "xyes" ; then
PKG_CHECK_MODULES(PULSE, [ libpulse-simple >= 0.9 ],
[have_pulse=yes],[have_pulse=no])
fi
AC_SUBST(PULSE_LIBS)
AM_CONDITIONAL(HAVE_PULSE,test "x$have_pulse" = xyes)
dnl Orphaned driver. We'll probably dump it soon.
AM_CONDITIONAL(HAVE_SOLARIS,test "x$have_solaris" = xyes)
......@@ -352,4 +466,49 @@ dnl Plugins get special LDFLAGS
AC_SUBST(PLUGIN_LDFLAGS)
AC_OUTPUT(Makefile src/Makefile doc/Makefile include/Makefile include/ao/Makefile include/ao/os_types.h src/plugins/Makefile src/plugins/esd/Makefile src/plugins/oss/Makefile src/plugins/alsa/Makefile src/plugins/alsa09/Makefile src/plugins/sun/Makefile src/plugins/irix/Makefile src/plugins/arts/Makefile src/plugins/macosx/Makefile src/plugins/nas/Makefile debian/Makefile ao.pc)
AC_OUTPUT([Makefile src/Makefile doc/Makefile include/Makefile include/ao/Makefile include/ao/os_types.h src/plugins/Makefile src/plugins/esd/Makefile src/plugins/oss/Makefile src/plugins/alsa/Makefile src/plugins/sun/Makefile src/plugins/irix/Makefile src/plugins/arts/Makefile src/plugins/macosx/Makefile src/plugins/nas/Makefile src/plugins/pulse/Makefile src/plugins/sndio/Makefile src/plugins/roar/Makefile ao.pc])
AS_AC_EXPAND(LIBDIR, ${libdir})
AS_AC_EXPAND(INCLUDEDIR, ${includedir})
AS_AC_EXPAND(BINDIR, ${bindir})
AS_AC_EXPAND(DOCDIR, ${docdir})
AC_MSG_RESULT([
------------------------------------------------------------------------
$PACKAGE $VERSION: Automatic configuration OK.
Backends to be built:
AU file output: .............. yes
RAW file output: ............. yes
WAV file output: ............. yes
AIX live output: ............. ${have_aix}
ALSA live output: ............ ${have_alsa}
ARTS live output: ............ ${have_arts}
ESD live output: ............. ${have_esd}
IRIX live output: ............ ${have_irix}
MACOSX live output: .......... ${have_macosx}
NAS live output: ............. ${have_nas}
NULL live output: ............ yes
OSS live output: ............. ${have_oss}
PULSE live output: ........... ${have_pulse}
ROAR live output: ............ ${have_roar}
SNDIO live output: ........... ${have_sndio}
SUN live output: ............. ${have_sun}
Windows WMM live output: ..... ${have_wmm}
Installation paths:
libao: ....................... ${LIBDIR}
C header files: .............. ${INCLUDEDIR}/ao
Documentation: ............... ${DOCDIR}
Building:
Type 'make' to compile $PACKAGE.
Type 'make install' to install $PACKAGE.
------------------------------------------------------------------------
])
Makefile
Makefile.in
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = changelog control copyright libao-dev.docs libao-dev.install \
libao.conf libao2.README.Debian libao2.install libao2.manpages rules
libao (0.8.4-1) unstable; urgency=low
* New upstream.
-- Christopher L Cheney <ccheney@debian.org> Fri, 10 Oct 2003 23:00:00 -0500
libao (0.8.3-1.1) unstable; urgency=low
* Non-maintainer upload sponsored by Joey Hess.
* Build-depend on libartsc0-dev and suggest libartsc0 instead of
libarts-dev and libarts (Closes: #189160).
* GNU config automated update: config.sub (20020621 to 20030509),
config.guess (20020529 to 20030519)
-- Dagfinn Ilmari Mannsaker <ilmari@ilmari.org> Mon, 14 Jul 2003 15:55:31 +0200
libao (0.8.3-1) unstable; urgency=low
* New upstream. (Closes: #134520, #145785)
-- Christopher L Cheney <ccheney@debian.org> Fri, 19 Jul 2002 09:00:00 -0500
libao (0.8.2-1) unstable; urgency=low
* New upstream. (Closes: #110858)
* Changed to building alsa 0.9.x plugin instead of obsolete 0.5.x (Closes:
#103787)
* added autotools target (config.* updater) to rules
-- Christopher L Cheney <ccheney@debian.org> Mon, 24 Dec 2001 11:00:00 -0600
libao (0.8.1-1) unstable; urgency=high
* New upstream.
* Plugin dir changed. (Closes: #109071, #109532, #108750, #108755, #108790,
#109383, #109877, #109383)
-- Christopher L Cheney <ccheney@debian.org> Wed, 22 Aug 2001 23:00:00 -0500
libao (0.8.0-1) unstable; urgency=low
* New upstream. (Closes: #101380)
* soname changed to 2.
-- Christopher L Cheney <ccheney@debian.org> Sun, 12 Aug 2001 21:00:00 -0500
libao (0.7.0-1) unstable; urgency=low
* New upstream.
* Fixed versioned depends
* Changed clean method to distclean
-- Christopher L Cheney <ccheney@debian.org> Sun, 17 Jun 2001 20:00:00 -0500
libao (0.6.0-1) unstable; urgency=low
* New upstream.
* Fixed spelling error (closes: #85420)
-- Christopher L Cheney <ccheney@debian.org> Mon, 26 Feb 2001 08:00:00 -0600
libao (0.5.0-3) unstable; urgency=low
* Fixed Build-Depends libasound1-dev to only not be on m68k.
* Fixed Sections.
* Updated to Standards-Version to 3.5.1.0
* Added Lintian override file.
-- Christopher L Cheney <ccheney@debian.org> Sat, 17 Feb 2001 16:45:59 -0600
libao (0.5.0-2) unstable; urgency=low
* Fixed Build-Depends for archs that do not have libasound1-dev (closes:
#78097)
* Renamed development library package
-- Christopher L Cheney <ccheney@debian.org> Sat, 3 Feb 2001 12:30:52 -0600
libao (0.5.0-1) unstable; urgency=low
* Initial Release.
-- Christopher L Cheney <ccheney@debian.org> Sun, 29 Oct 2000 00:39:24 -0500
Local variables:
mode: debian-changelog
End:
Source: libao
Section: libs
Priority: optional
Maintainer: Christopher L Cheney <ccheney@debian.org>
Build-Depends: autotools-dev, debhelper (>> 4.0.18), devscripts, gawk, libartsc0-dev, libasound2-dev, libesd0-dev
Standards-Version: 3.6.1.0
Package: libao2
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
Suggests: libartsc0, libasound2, libaudio2, libesd0 | libesd-alsa0
Description: Cross Platform Audio Output Library
Libao is a cross platform audio output library. It currently supports
ESD, OSS, Solaris, and IRIX.
Package: libao-dev
Architecture: any
Section: libdevel
Depends: libao2 (= ${Source-Version}), libc6-dev
Description: Cross Platform Audio Output Library Development
The libao-dev package contains the header files and documentation
needed to develop applications with libao.
This package was debianized by Christopher L Cheney <ccheney@debian.org> on
Sun, 29 Oct 2000 00:39:24 -0500.
It was downloaded from http://www.vorbis.com/download_unix.psp
Upstream Authors: Aaron Holtzman
Stan Seibert <volsung@xiph.org>
Jack Moffitt <jack@xiph.org>
Ralph Giles <giles@xiph.org>
Warren Dukes <shank@xiph.org>
Copyright:
Originally Copyright (C) Aaron Holtzman - May 1999
Changes Copyright (C) Stan Seibert - July 2000-March 2004
You are free to distribute this software under the terms of the GNU
General Public License. On Debian systems, the complete text of the
GNU General Public License can be found in
/usr/share/common-licenses/GPL file.
README
TODO
debian/tmp/usr/share/doc/libao-*/*
debian/tmp/usr/include/ao/ao.h
debian/tmp/usr/include/ao/os_types.h
debian/tmp/usr/include/ao/plugin.h
debian/tmp/usr/lib/ao/plugins-2/libalsa09.a
debian/tmp/usr/lib/ao/plugins-2/libalsa09.la
debian/tmp/usr/lib/ao/plugins-2/libarts.a
debian/tmp/usr/lib/ao/plugins-2/libarts.la
debian/tmp/usr/lib/ao/plugins-2/libesd.a
debian/tmp/usr/lib/ao/plugins-2/libesd.la
debian/tmp/usr/lib/ao/plugins-2/libnas.a
debian/tmp/usr/lib/ao/plugins-2/libnas.la
debian/tmp/usr/lib/ao/plugins-2/liboss.a
debian/tmp/usr/lib/ao/plugins-2/liboss.la
debian/tmp/usr/lib/libao.a
debian/tmp/usr/lib/libao.la
debian/tmp/usr/lib/libao.so
debian/tmp/usr/lib/pkgconfig/ao.pc
debian/tmp/usr/share/aclocal/ao.m4