diff -rNc gst-plugins.org/configure.ac gst-plugins/configure.ac *** gst-plugins.org/configure.ac 2003/04/25 13:45:48 --- gst-plugins/configure.ac 2003/05/27 11:09:40 *************** *** 516,521 **** --- 516,534 ---- AM_PATH_ESD(0.2.12, HAVE_ESD=yes, HAVE_ESD=no) AS_SCRUB_INCLUDE(ESD_CFLAGS) ]) + dnl + + dnl **** Network Audio System **** + translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true) + GST_CHECK_FEATURE(NAS, [nas plug-ins], nassink, [ + AC_PATH_XTRA + GST_CHECK_LIBHEADER(NAS, audio, + AuOpenServer, $X_PRE_LIBS $X_LIBS -lXau $X_EXTRA_LIBS, + audio/audiolib.h, + NAS_LIBS="-laudio $X_PRE_LIBS $X_LIBS -lXau $X_EXTRA_LIBS") + AC_SUBST(NAS_LIBS) + ]) + dnl dnl **** festival **** dnl translit(dnm, m, l) AM_CONDITIONAL(USE_FESTIVAL, true) *************** *** 1091,1096 **** --- 1104,1110 ---- ext/dvdread/Makefile ext/dvdnav/Makefile ext/esd/Makefile + ext/nas/Makefile ext/ffmpeg/Makefile ext/flac/Makefile ext/gnomevfs/Makefile diff -rNc gst-plugins.org/ext/Makefile.am gst-plugins/ext/Makefile.am *** gst-plugins.org/ext/Makefile.am 2003/05/21 15:15:31 --- gst-plugins/ext/Makefile.am 2003/05/27 11:10:51 *************** *** 64,69 **** --- 64,75 ---- ESD_DIR= endif + if USE_NAS + NAS_DIR=nas + else + NAS_DIR= + endif + ## if USE_FESTIVAL ## FESTIVAL_DIR=festival ## else *************** *** 253,259 **** SUBDIRS=$(A52DEC_DIR) $(AALIB_DIR) $(ALSA_DIR) \ $(ARTS_DIR) $(ARTSC_DIR) $(AUDIOFILE_DIR) \ $(AVIFILE_DIR) $(CDPARANOIA_DIR) \ ! $(DVDREAD_DIR) $(DVDNAV_DIR) $(ESD_DIR) \ $(FFMPEG_DIR) $(FLAC_DIR) $(GNOMEVFS_DIR) $(GSM_DIR) \ $(HERMES_DIR) $(HTTP_DIR) $(JACK_DIR) $(JPEG_DIR) \ $(LADSPA_DIR) $(LAME_DIR) $(LCS_DIR) \ --- 259,265 ---- SUBDIRS=$(A52DEC_DIR) $(AALIB_DIR) $(ALSA_DIR) \ $(ARTS_DIR) $(ARTSC_DIR) $(AUDIOFILE_DIR) \ $(AVIFILE_DIR) $(CDPARANOIA_DIR) \ ! $(DVDREAD_DIR) $(DVDNAV_DIR) $(ESD_DIR) $(NAS_DIR) \ $(FFMPEG_DIR) $(FLAC_DIR) $(GNOMEVFS_DIR) $(GSM_DIR) \ $(HERMES_DIR) $(HTTP_DIR) $(JACK_DIR) $(JPEG_DIR) \ $(LADSPA_DIR) $(LAME_DIR) $(LCS_DIR) \ diff -rNc gst-plugins.org/ext/nas/Makefile.am gst-plugins/ext/nas/Makefile.am *** gst-plugins.org/ext/nas/Makefile.am 1970-01-01 01:00:00.000000000 +0100 --- gst-plugins/ext/nas/Makefile.am 2003-05-27 13:14:44.000000000 +0200 *************** *** 0 **** --- 1,11 ---- + plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@ + + plugin_LTLIBRARIES = libgstnassink.la + + libgstnassink_la_SOURCES = nassink.c + libgstnassink_la_CFLAGS = $(GST_CFLAGS) + libgstnassink_la_LIBADD = $(NAS_LIBS) $(GST_LIBS) + libgstnassink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) + + noinst_HEADERS = nassink.h + EXTRA_DIST = README diff -rNc gst-plugins.org/ext/nas/README gst-plugins/ext/nas/README *** gst-plugins.org/ext/nas/README 1970-01-01 01:00:00.000000000 +0100 --- gst-plugins/ext/nas/README 2003-05-27 13:14:46.000000000 +0200 *************** *** 0 **** --- 1,11 ---- + The nassink plugin + ================== + + The nassink plugin is for outputting an audio stream to a Network Audio Server (NCD X/Terminal) + + esdsink has arguments that it accepts: + - 'mute' (boolean value) + - 'depth' (sample depth in bits- defaults to 16) + - 'host' (name of X/Terminal, default is $AUDIOSERVER or $DISPLAY) + - 'frequency' (integer value in Hz) + - 'channels' (number of channels - 2 for stereo) diff -rNc gst-plugins.org/ext/nas/nassink.c gst-plugins/ext/nas/nassink.c *** gst-plugins.org/ext/nas/nassink.c 1970-01-01 01:00:00.000000000 +0100 --- gst-plugins/ext/nas/nassink.c 2003-05-27 13:14:47.000000000 +0200 *************** *** 0 **** --- 1,718 ---- + /* GStreamer + * Copyright (C) <2003> Laurent Vivier + * + * Based on esdsink.c: + * Copyright (C) <2001> Richard Boulton + * + * 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. + */ + + #include