diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-06-20 19:07:27 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-06-20 19:07:27 +0000 |
commit | 5110ba5e5155c9b987f36bec9b8098a56eec24e6 (patch) | |
tree | a9ecffec0e228065dbec8757b239448a6d55f428 /src | |
parent | c863998666d04afaf0adeb473e706d2b181a74e2 (diff) |
s/polyp/PULSE/g
git-svn-id: file:///home/lennart/svn/public/xmms-pulse/trunk@43 ef929aba-56e2-0310-84e0-b7573d389508
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 18 | ||||
-rw-r--r-- | src/plugin.c | 78 |
2 files changed, 48 insertions, 48 deletions
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; } |