summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-06-20 19:07:27 +0000
committerLennart Poettering <lennart@poettering.net>2006-06-20 19:07:27 +0000
commit5110ba5e5155c9b987f36bec9b8098a56eec24e6 (patch)
treea9ecffec0e228065dbec8757b239448a6d55f428
parentc863998666d04afaf0adeb473e706d2b181a74e2 (diff)
s/polyp/PULSE/g
git-svn-id: file:///home/lennart/svn/public/xmms-pulse/trunk@43 ef929aba-56e2-0310-84e0-b7573d389508
-rw-r--r--Makefile.am16
-rwxr-xr-xbootstrap.sh8
-rw-r--r--configure.ac26
-rw-r--r--doc/style.css8
-rw-r--r--src/Makefile.am18
-rw-r--r--src/plugin.c78
6 files changed, 77 insertions, 77 deletions
diff --git a/Makefile.am b/Makefile.am
index a5f3371..6963ce7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,19 +1,19 @@
# $Id$
#
-# This file is part of xmms-polyp.
+# This file is part of xmms-pulse.
#
-# xmms-polyp is free software; you can redistribute it and/or modify
+# xmms-pulse is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
-# xmms-polyp is distributed in the hope that it will be useful, but
+# xmms-pulse 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with xmms-polyp; if not, write to the Free Software
+# along with xmms-pulse; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
@@ -30,9 +30,9 @@ README:
homepage: all dist
test -d $$HOME/homepage/private
- mkdir -p $$HOME/homepage/private/projects/xmms-polyp
- cp xmms-polyp-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/xmms-polyp
- cp doc/README.html doc/style.css $$HOME/homepage/private/projects/xmms-polyp
- ln -sf README.html $$HOME/homepage/private/projects/xmms-polyp/index.html
+ mkdir -p $$HOME/homepage/private/projects/xmms-pulse
+ cp xmms-pulse-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/xmms-pulse
+ cp doc/README.html doc/style.css $$HOME/homepage/private/projects/xmms-pulse
+ ln -sf README.html $$HOME/homepage/private/projects/xmms-pulse/index.html
.PHONY: homepage
diff --git a/bootstrap.sh b/bootstrap.sh
index c8cdc67..07c6e2b 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,20 +1,20 @@
#!/bin/bash
# $Id$
-# This file is part of xmms-polyp.
+# This file is part of xmms-pulse.
#
-# xmms-polyp is free software; you can redistribute it and/or modify it
+# xmms-pulse is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
-# xmms-polyp is distributed in the hope that it will be useful, but
+# xmms-pulse 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with xmms-polyp; if not, write to the Free Software Foundation,
+# along with xmms-pulse; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
VERSION=1.9
diff --git a/configure.ac b/configure.ac
index cb38ecf..ee4d125 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,29 +3,29 @@
# $Id$
-# This file is part of xmms-polyp.
+# This file is part of xmms-pulse.
#
-# xmms-polyp is free software; you can redistribute it and/or modify it
+# xmms-pulse is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
-# xmms-polyp is distributed in the hope that it will be useful, but
+# xmms-pulse 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with xmms-polyp; if not, write to the Free Software Foundation,
+# along with xmms-pulse; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
AC_PREREQ(2.57)
-AC_INIT([xmms-polyp],[0.9.0],[mzkzzfcbylc (at) 0pointer (dot) de])
+AC_INIT([xmms-pulse],[0.9.2],[mzkzzfchyfr (at) 0pointer (dot) de])
AC_CONFIG_SRCDIR([src/plugin.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign 1.9 -Wall])
-AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/xmms-polyp/])
+AC_SUBST(PACKAGE_URL, [http://0pointer.de/lennart/projects/xmms-pulse/])
if type -p stow > /dev/null && test -d /usr/local/stow ; then
AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
@@ -45,16 +45,16 @@ AC_TYPE_SIZE_T
PKG_PROG_PKG_CONFIG
-if test -d ../polypaudio ; then
- POLYP_CFLAGS='-I$(top_srcdir)/../polypaudio/src'
- POLYP_LIBS='-L$(top_srcdir)/../polypaudio/src/.libs -lpolyp'
- echo "*** Found polypaudio in ../polypaudio, using that version ***"
+if test -d ../pulseaudio ; then
+ PULSE_CFLAGS='-I$(top_srcdir)/../pulseaudio/src'
+ PULSE_LIBS='-L$(top_srcdir)/../pulseaudio/src/.libs -lpulse'
+ echo "*** Found pulseaudio in ../pulseaudio, using that version ***"
else
- PKG_CHECK_MODULES(POLYP, [ polyplib >= 0.9.0 ])
+ PKG_CHECK_MODULES(PULSE, [ libpulse >= 0.9.0 ])
fi
-AC_SUBST(POLYP_LIBS)
-AC_SUBST(POLYP_CFLAGS)
+AC_SUBST(PULSE_LIBS)
+AC_SUBST(PULSE_CFLAGS)
AC_PATH_PROG(XMMS_CONFIG, xmms-config)
diff --git a/doc/style.css b/doc/style.css
index 1781c4e..2ca9940 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -1,20 +1,20 @@
/* $Id$ */
/***
- * This file is part of xmms-polyp.
+ * This file is part of xmms-pulse.
*
- * xmms-polyp is free software; you can redistribute it and/or modify it
+ * xmms-pulse is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
- * xmms-polyp is distributed in the hope that it will be useful, but
+ * xmms-pulse 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with xmms-polyp; if not, write to the Free Software Foundation,
+ * along with xmms-pulse; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
***/
diff --git a/src/Makefile.am b/src/Makefile.am
index 192b72d..896e682 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,19 +1,19 @@
# $Id$
#
-# This file is part of xmms-polyp.
+# This file is part of xmms-pulse.
#
-# xmms-polyp is free software; you can redistribute it and/or modify
+# xmms-pulse is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
-# xmms-polyp is distributed in the hope that it will be useful, but
+# xmms-pulse 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with xmms-polyp; if not, write to the Free Software
+# along with xmms-pulse; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.
@@ -22,9 +22,9 @@ AM_LIBADD=$(PTHREAD_LIBS)
xmmsplugindir=$(XMMS_OUTPUTPLUGINDIR)
-xmmsplugin_LTLIBRARIES=libxmms-polyp.la
+xmmsplugin_LTLIBRARIES=libxmms-pulse.la
-libxmms_polyp_la_SOURCES=plugin.c
-libxmms_polyp_la_LDFLAGS=-module -avoid-version
-libxmms_polyp_la_LIBADD=$(AM_LIBADD) $(POLYP_LIBS) $(XMMS_LIBS)
-libxmms_polyp_la_CFLAGS=$(AM_CFLAGS) $(POLYP_CFLAGS) $(XMMS_CFLAGS)
+libxmms_pulse_la_SOURCES=plugin.c
+libxmms_pulse_la_LDFLAGS=-module -avoid-version
+libxmms_pulse_la_LIBADD=$(AM_LIBADD) $(PULSE_LIBS) $(XMMS_LIBS)
+libxmms_pulse_la_CFLAGS=$(AM_CFLAGS) $(PULSE_CFLAGS) $(XMMS_CFLAGS)
diff --git a/src/plugin.c b/src/plugin.c
index 1c95225..1216535 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -1,20 +1,20 @@
/* $Id$ */
/***
- This file is part of xmms-polyp.
+ This file is part of xmms-pulse.
- xmms-polyp is free software; you can redistribute it and/or modify
+ xmms-pulse is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
- xmms-polyp is distributed in the hope that it will be useful, but
+ xmms-pulse 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
General Public License for more details.
You should have received a copy of the GNU General Public License
- along with xmms-polyp; if not, write to the Free Software
+ along with xmms-pulse; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.
***/
@@ -32,7 +32,7 @@
#include <xmmsctrl.h>
#include <util.h>
-#include <polyp/polypaudio.h>
+#include <pulse/pulseaudio.h>
static pa_context *context = NULL;
static pa_stream *stream = NULL;
@@ -178,7 +178,7 @@ static void stream_latency_update_cb(pa_stream *s, void *userdata) {
pa_threaded_mainloop_signal(mainloop, 0);
}
-static void polyp_get_volume(int *l, int *r) {
+static void pulse_get_volume(int *l, int *r) {
pa_cvolume v;
int b = 0;
@@ -223,7 +223,7 @@ static void volume_time_cb(pa_mainloop_api *api, pa_time_event *e, const struct
volume_time_event = NULL;
}
-static void polyp_set_volume(int l, int r) {
+static void pulse_set_volume(int l, int r) {
/* g_message("set_volume"); */
@@ -254,7 +254,7 @@ fail:
pa_threaded_mainloop_unlock(mainloop);
}
-static void polyp_pause(short b) {
+static void pulse_pause(short b) {
pa_operation *o = NULL;
int success = 0;
@@ -286,7 +286,7 @@ fail:
pa_threaded_mainloop_unlock(mainloop);
}
-static int polyp_free(void) {
+static int pulse_free(void) {
size_t l = 0;
pa_operation *o = NULL;
@@ -303,7 +303,7 @@ static int polyp_free(void) {
goto fail;
}
- /* If this function is called twice with no polyp_write() call in
+ /* If this function is called twice with no pulse_write() call in
* between this means we should trigger the playback */
if (do_trigger) {
int success = 0;
@@ -329,7 +329,7 @@ fail:
return (int) l;
}
-static int polyp_get_written_time(void) {
+static int pulse_get_written_time(void) {
int r = 0;
/* g_message("get_written_time"); */
@@ -349,7 +349,7 @@ fail:
return r;
}
-static int polyp_get_output_time(void) {
+static int pulse_get_output_time(void) {
int r = 0;
pa_usec_t t;
@@ -390,7 +390,7 @@ fail:
return r;
}
-static int polyp_playing(void) {
+static int pulse_playing(void) {
int r = 0;
const pa_timing_info *i;
@@ -422,7 +422,7 @@ fail:
return r;
}
-static void polyp_flush(int time) {
+static void pulse_flush(int time) {
pa_operation *o = NULL;
int success = 0;
@@ -457,7 +457,7 @@ fail:
pa_threaded_mainloop_unlock(mainloop);
}
-static void polyp_write(void* ptr, int length) {
+static void pulse_write(void* ptr, int length) {
/* g_message("write"); */
@@ -508,7 +508,7 @@ fail:
pa_threaded_mainloop_unlock(mainloop);
}
-static void polyp_close(void) {
+static void pulse_close(void) {
/* g_message("close"); */
@@ -539,7 +539,7 @@ static void polyp_close(void) {
volume_time_event = NULL;
}
-static int polyp_open(AFormat fmt, int rate, int nch) {
+static int pulse_open(AFormat fmt, int rate, int nch) {
pa_sample_spec ss;
pa_operation *o = NULL;
int success;
@@ -684,23 +684,23 @@ unlock_and_fail:
fail:
- polyp_close();
+ pulse_close();
return FALSE;
}
-static void polyp_init(void) {
+static void pulse_init(void) {
}
-static void polyp_about(void) {
+static void pulse_about(void) {
static GtkWidget *dialog;
if (dialog != NULL)
return;
dialog = xmms_show_message(
- "About XMMS Polypaudio Output Plugin",
- "XMMS Polypaudio Output Plugin\n\n "
+ "About XMMS PulseAudio Output Plugin",
+ "XMMS PulseAudio Output Plugin\n\n "
"This program is free software; you can redistribute it and/or modify\n"
"it under the terms of the GNU General Public License as published by\n"
"the Free Software Foundation; either version 2 of the License, or\n"
@@ -729,25 +729,25 @@ static void polyp_about(void) {
OutputPlugin *get_oplugin_info(void) {
- static OutputPlugin polyp_plugin = {
+ static OutputPlugin pulse_plugin = {
NULL,
NULL,
- "Polypaudio Output Plugin",
- polyp_init,
- polyp_about,
- NULL, /* polyp_configure, */
- polyp_get_volume,
- polyp_set_volume,
- polyp_open,
- polyp_write,
- polyp_close,
- polyp_flush,
- polyp_pause,
- polyp_free,
- polyp_playing,
- polyp_get_output_time,
- polyp_get_written_time,
+ "PulseAudio Output Plugin",
+ pulse_init,
+ pulse_about,
+ NULL, /* pulse_configure, */
+ pulse_get_volume,
+ pulse_set_volume,
+ pulse_open,
+ pulse_write,
+ pulse_close,
+ pulse_flush,
+ pulse_pause,
+ pulse_free,
+ pulse_playing,
+ pulse_get_output_time,
+ pulse_get_written_time,
};
- return &polyp_plugin;
+ return &pulse_plugin;
}