From beceaa55e19d1395d2a11e0c57e203f8f6f78bc1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Nov 2007 16:20:32 +0000 Subject: unbreak gst-pulse git-svn-id: file:///home/lennart/svn/public/gst-pulse/trunk@77 bb39ca4e-bce3-0310-b5d4-eea78a553289 --- configure.ac | 2 +- doc/README.html.in | 7 +++++-- src/pulsesink.c | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 8a3b767..2012f79 100644 --- a/configure.ac +++ b/configure.ac @@ -20,7 +20,7 @@ # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. AC_PREREQ(2.57) -AC_INIT([gst-pulse],[0.9.6],[mztfgchyfr (at) 0pointer (dot) de]) +AC_INIT([gst-pulse],[0.9.7],[mztfgchyfr (at) 0pointer (dot) de]) AC_CONFIG_SRCDIR([src/plugin.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign 1.9 -Wall]) diff --git a/doc/README.html.in b/doc/README.html.in index 91f0205..12a81a9 100644 --- a/doc/README.html.in +++ b/doc/README.html.in @@ -42,6 +42,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

News

+
Thu Nov 22 2007:

Version 0.9.7 released; make the sink actually work by fixing a brown paperbag bug introduced in 0.9.6.

+
Thu Nov 22 2007:

Version 0.9.6 released; add support for S32 samples, add channel map support to the source element, too.

@@ -77,7 +80,7 @@ it includes both a sink and a source, and implements the GstMixer and GstPropertyProbe interfaces. Only the ALSA plugin shipped with upstream GStreamer is as advanced and featureful as gst-pulse.

- +

Documentation

There is not much to say. Just install this software, the driver is @@ -96,7 +99,7 @@ source code configuration.

Obviously gst-pulse requires an installation of PulseAudio (version 0.9.x) and gstreamer 0.10.x.

- +

Installation

As this package is made with the GNU autotools you should run diff --git a/src/pulsesink.c b/src/pulsesink.c index d7039a7..f188bd5 100644 --- a/src/pulsesink.c +++ b/src/pulsesink.c @@ -396,7 +396,7 @@ static gboolean gst_pulsesink_prepare(GstAudioSink *asink, GstRingBufferSpec *sp memset(&buf_attr, 0, sizeof(buf_attr)); buf_attr.tlength = spec->segtotal*spec->segsize; buf_attr.maxlength = buf_attr.tlength*2; - buf_attr.prebuf = buf_attr.tlength*2; + buf_attr.prebuf = buf_attr.tlength-spec->segsize; buf_attr.minreq = spec->segsize; if (pa_stream_connect_playback(pulsesink->stream, pulsesink->device, &buf_attr, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_NOT_MONOTONOUS, NULL, NULL) < 0) { -- cgit