added esd added new autogen.sh feature : list all of the libs/plugins you want...

added esd added new autogen.sh feature : list all of the libs/plugins you want to disable in a file called "disable" ...

Original commit message from CVS:
added esd
added new autogen.sh feature :
list all of the libs/plugins you want to disable in a file called "disable"
and they will.  makes it easier to check stuff when you're working on one
a file "enable" does the opposite.  You're on your own if you make them
conflict ;)
CML2 anyone ?

fixed some xvideo stuff, can't remember what though
parent 2f7d4915
SUBDIRS=sys
SUBDIRS=sys ext
DIST_SUBDIRS=sys
DIST_SUBDIRS=sys ext
......@@ -152,6 +152,21 @@ automake -a -c || {
CONFIGURE_OPT='--enable-maintainer-mode --enable-plugin-builddir --enable-debug --enable-DEBUG'
# if enable exists, add an -enable option for each of the lines in that file
if test -f enable; then
for a in `cat enable`; do
CONFIGURE_OPT="$CONFIGURE_OPT --enable-$a"
done
fi
# if disable exists, add an -disable option for each of the lines in that file
if test -f disable; then
for a in `cat disable`; do
CONFIGURE_OPT="$CONFIGURE_OPT --disable-$a"
done
fi
echo "+ running configure ... "
echo "./configure default flags: $CONFIGURE_OPT"
echo "using: $CONFIGURE_OPT $@"
......
......@@ -460,9 +460,9 @@ GST_CHECK_FEATURE(LIBDVDREAD, [dvdread library], libdvdread, [
])
dnl **** ESound ****
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBESD, true)
GST_CHECK_FEATURE(LIBESD, [esound plugins], esdsrc esdsink, [
AM_PATH_ESD(0.2.12, HAVE_LIBESD=yes, HAVE_LIBESD=no)
translit(dnm, m, l) AM_CONDITIONAL(USE_ESD, true)
GST_CHECK_FEATURE(ESD, [esound plugins], esdsrc esdsink, [
AM_PATH_ESD(0.2.12, HAVE_ESD=yes, HAVE_ESD=no)
])
dnl *** FLAC ***
......@@ -523,10 +523,11 @@ GST_CHECK_FEATURE(LIBJPEG, [libjpeg], jpegenc jpegdec, [
dnl *** mad ***
dnl FIXME: we could use header checks here as well IMO
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMAD, true)
GST_CHECK_FEATURE(LIBMAD, [mad], mad, [
AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_LIBMAD="yes")
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad")
])
AC_SUBST(MAD_LIBS)
dnl *** mikmod ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMIKMOD, true)
......@@ -930,14 +931,6 @@ dnl
dnl AC_SUBST(FOMIT_FRAME_POINTER)
dnl
if test "x$HAVE_LIBXV" = xyes; then
AC_DEFINE(HAVE_LIBXV)
fi
if test "x$HAVE_LIBMAD" = xyes; then
AC_DEFINE(HAVE_LIBMAD)
fi
if test "x$HAVE_LIBMIKMOD" = xyes; then
AC_DEFINE(HAVE_LIBMIKMOD)
fi
......@@ -1008,9 +1001,6 @@ AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes")
AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes")
AM_CONDITIONAL(HAVE_OSS, test "x$HAVE_OSS" = "xyes")
AM_CONDITIONAL(HAVE_XAUDIO, test "x$HAVE_XAUDIO" = "xyes")
AM_CONDITIONAL(HAVE_LIBMAD, test "x$HAVE_LIBMAD" = "xyes")
AM_CONDITIONAL(HAVE_LIBMIKMOD, test "x$HAVE_LIBMIKMOD" = "xyes")
AM_CONDITIONAL(HAVE_LINUX_CDROM, test "x$HAVE_LINUX_CDROM" = "xyes")
AM_CONDITIONAL(HAVE_LINUX_VIDEODEV, test "x$HAVE_LINUX_VIDEODEV" = "xyes")
......@@ -1022,7 +1012,6 @@ AM_CONDITIONAL(HAVE_LIBHERMES, test "x$HAVE_LIBHERMES" = "xyes")
AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes")
AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
AM_CONDITIONAL(HAVE_LIBXV, test "x$HAVE_LIBXV" = "xyes")
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
......@@ -1155,6 +1144,10 @@ sys/v4l/Makefile
sys/vcd/Makefile
sys/vga/Makefile
sys/xvideo/Makefile
ext/Makefile
ext/esd/Makefile
ext/mad/Makefile
ext/vorbis/Makefile
)
echo -e "configure: *** Plugins that will be built : $GST_PLUGINS_YES"
......
filterdir = $(libdir)/gst
filter_LTLIBRARIES = libesdsink.la
libesdsink_la_SOURCES = esdsink.c
noinst_HEADERS = esdsink.h
libesdsink_la_CFLAGS = $(ESD_CFLAGS) $(GST_CFLAGS)
libesdsink_la_LIBADD = $(ESD_LIBS)
EXTRA_DIST = README
The esdsink plugin
==================
The esdsink plugin is for outputting an audio atream to an esd soundserver, whether local or on a remote machine
esdsink has 2 arguments that it accepts:
- 'mute' (boolean value)
- 'depth' (sample depth in bits- defaults to 16)
- 'host' (used only if you want to connect to a remote esd soundserver)
- 'frequency' (integer value in Hz)
- 'channels' (number of channels - 2 for stereo)
This diff is collapsed.
/* Gnome-Streamer
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_ESDSINK_H__
#define __GST_ESDSINK_H__
#include <gst/gst.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GST_TYPE_ESDSINK \
(gst_esdsink_get_type())
#define GST_ESDSINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ESDSINK,GstEsdsink))
#define GST_ESDSINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ESDSINK,GstEsdsink))
#define GST_IS_ESDSINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ESDSINK))
#define GST_IS_ESDSINK_CLASS(obj) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ESDSINK))
typedef enum {
GST_ESDSINK_OPEN = GST_ELEMENT_FLAG_LAST,
GST_ESDSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST+2,
} GstEsdSinkFlags;
typedef struct _GstEsdsink GstEsdsink;
typedef struct _GstEsdsinkClass GstEsdsinkClass;
struct _GstEsdsink {
GstElement element;
GstPad *sinkpad;
gboolean mute;
int fd;
gint format;
gint depth;
gint channels;
gint frequency;
gchar* host;
};
struct _GstEsdsinkClass {
GstElementClass parent_class;
};
GType gst_esdsink_get_type(void);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __GST_ESDSINK_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment