diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 18 | ||||
-rw-r--r-- | src/ao_pulse.c (renamed from src/ao_polyp.c) | 50 |
2 files changed, 34 insertions, 34 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8ba4980..e3c1881 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,27 +1,27 @@ # $Id$ # -# This file is part of libao-polyp. +# This file is part of libao-pulse. # -# libao-polyp is free software; you can redistribute it and/or modify +# libao-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. # -# libao-polyp is distributed in the hope that it will be useful, but +# libao-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 libao-polyp; if not, write to the Free Software +# along with libao-pulse; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. aolibdir=$(LIBAO_MODDIR) -aolib_LTLIBRARIES=libpolyp.la +aolib_LTLIBRARIES=libpulse.la -libpolyp_la_SOURCES=ao_polyp.c -libpolyp_la_LDFLAGS=-module -avoid-version -libpolyp_la_LIBADD=$(AM_LIBADD) $(POLYP_LIBS) -libpolyp_la_CFLAGS=$(AM_CFLAGS) $(POLYP_CFLAGS) $(LIBAO_CFLAGS) +libpulse_la_SOURCES=ao_pulse.c +libpulse_la_LDFLAGS=-module -avoid-version +libpulse_la_LIBADD=$(AM_LIBADD) $(PULSE_LIBS) +libpulse_la_CFLAGS=$(AM_CFLAGS) $(PULSE_CFLAGS) $(LIBAO_CFLAGS) diff --git a/src/ao_polyp.c b/src/ao_pulse.c index 7a45605..c2a1f54 100644 --- a/src/ao_polyp.c +++ b/src/ao_pulse.c @@ -1,20 +1,20 @@ /* $Id$ */ /*** - This file is part of libao-polyp. + This file is part of libao-pulse. - libao-polyp is free software; you can redistribute it and/or modify + libao-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. - libao-polyp is distributed in the hope that it will be useful, but + libao-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 libao-polyp; if not, write to the Free Software + along with libao-pulse; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ***/ @@ -28,34 +28,34 @@ #include <signal.h> #include <limits.h> -#include <polyp/simple.h> -#include <polyp/util.h> +#include <pulse/simple.h> +#include <pulse/util.h> #include <ao/ao.h> #include <ao/plugin.h> /* Unfortunately libao doesn't allow "const" for these structures... */ -static char * ao_polyp_options[] = { +static char * ao_pulse_options[] = { "server", "sink" }; -static ao_info ao_polyp_info = { +static ao_info ao_pulse_info = { AO_TYPE_LIVE, - "polypaudio output", - "polyp", + "PulseAudio Output", + "pulse", PACKAGE_BUGREPORT, - "Outputs to the Polypaudio Sound Server", + "Outputs to the PulseAudio Sound Server", AO_FMT_NATIVE, 41, - ao_polyp_options, + ao_pulse_options, 2 }; -typedef struct ao_polyp_internal { +typedef struct ao_pulse_internal { struct pa_simple *simple; char *server, *sink; -} ao_polyp_internal; +} ao_pulse_internal; /* Yes, this is very ugly, but required nonetheless... */ static void disable_sigpipe(void) { @@ -82,7 +82,7 @@ int ao_plugin_test(void) { disable_sigpipe(); - if (getenv("POLYP_SERVER") || getenv("POLYP_SINK")) + if (getenv("PULSE_SERVER") || getenv("PULSE_SINK")) return 1; if (pa_get_binary_name(p, sizeof(p))) { @@ -99,14 +99,14 @@ int ao_plugin_test(void) { } ao_info *ao_plugin_driver_info(void) { - return &ao_polyp_info; + return &ao_pulse_info; } int ao_plugin_device_init(ao_device *device) { - ao_polyp_internal *internal; + ao_pulse_internal *internal; assert(device); - internal = (ao_polyp_internal *) malloc(sizeof(ao_polyp_internal)); + internal = (ao_pulse_internal *) malloc(sizeof(ao_pulse_internal)); if (internal == NULL) return 0; @@ -120,9 +120,9 @@ int ao_plugin_device_init(ao_device *device) { } int ao_plugin_set_option(ao_device *device, const char *key, const char *value) { - ao_polyp_internal *internal; + ao_pulse_internal *internal; assert(device && device->internal && key && value); - internal = (ao_polyp_internal *) device->internal; + internal = (ao_pulse_internal *) device->internal; if (!strcmp(key, "server")) { free(internal->server); @@ -139,12 +139,12 @@ int ao_plugin_set_option(ao_device *device, const char *key, const char *value) int ao_plugin_open(ao_device *device, ao_sample_format *format) { char p[PATH_MAX], t[256], t2[256]; const char *fn = NULL; - ao_polyp_internal *internal; + ao_pulse_internal *internal; struct pa_sample_spec ss; assert(device && device->internal && format); - internal = (ao_polyp_internal *) device->internal; + internal = (ao_pulse_internal *) device->internal; if (format->bits == 8) ss.format = PA_SAMPLE_U8; @@ -176,7 +176,7 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) { int ao_plugin_play(ao_device *device, const char* output_samples, uint_32 num_bytes) { assert(device && device->internal); - ao_polyp_internal *internal = (ao_polyp_internal *) device->internal; + ao_pulse_internal *internal = (ao_pulse_internal *) device->internal; return pa_simple_write(internal->simple, output_samples, num_bytes, NULL) >= 0; } @@ -184,7 +184,7 @@ int ao_plugin_play(ao_device *device, const char* output_samples, uint_32 num_by int ao_plugin_close(ao_device *device) { assert(device && device->internal); - ao_polyp_internal *internal = (ao_polyp_internal *) device->internal; + ao_pulse_internal *internal = (ao_pulse_internal *) device->internal; pa_simple_drain(internal->simple, NULL); pa_simple_free(internal->simple); @@ -195,7 +195,7 @@ int ao_plugin_close(ao_device *device) { void ao_plugin_device_clear(ao_device *device) { assert(device && device->internal); - ao_polyp_internal *internal = (ao_polyp_internal *) device->internal; + ao_pulse_internal *internal = (ao_pulse_internal *) device->internal; free(internal->server); free(internal->sink); |