rpms/alsa-plugins/devel 1.0.14-buffer-attr.patch, NONE, 1.1 alsa-plugins.spec, 1.2, 1.3
Lennart Poettering (lennart)
fedora-extras-commits at redhat.com
Sun Sep 23 23:47:33 UTC 2007
- Previous message (by thread): rpms/gstreamer-plugins-pulse/devel .cvsignore, 1.4, 1.5 gstreamer-plugins-pulse.spec, 1.4, 1.5 sources, 1.4, 1.5
- Next message (by thread): rpms/vinagre/devel .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 vinagre.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: lennart
Update of /cvs/pkgs/rpms/alsa-plugins/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8545
Modified Files:
alsa-plugins.spec
Added Files:
1.0.14-buffer-attr.patch
Log Message:
change PulseAudio buffering metrics to saner defaults
1.0.14-buffer-attr.patch:
--- NEW FILE 1.0.14-buffer-attr.patch ---
--- alsa-plugins-1.0.14/pulse/pcm_pulse.c 2007-05-31 10:06:51.000000000 +0200
+++ alsa-plugins-1.0.14.lennart/pulse/pcm_pulse.c 2007-09-24 01:43:01.000000000 +0200
@@ -57,7 +57,7 @@
if (size > pcm->last_size) {
pcm->ptr += size - pcm->last_size;
- pcm->ptr %= pcm->buffer_attr.maxlength;
+ pcm->ptr %= pcm->buffer_attr.tlength;
}
pcm->last_size = size;
@@ -533,9 +533,9 @@
pcm->ss.rate = io->rate;
pcm->ss.channels = io->channels;
- pcm->buffer_attr.maxlength = io->buffer_size * pcm->frame_size;
+ pcm->buffer_attr.maxlength = (io->buffer_size*3)/2 * pcm->frame_size;
pcm->buffer_attr.tlength = io->buffer_size * pcm->frame_size;
- pcm->buffer_attr.prebuf = io->period_size * pcm->frame_size;
+ pcm->buffer_attr.prebuf = (io->buffer_size-io->period_size) * pcm->frame_size;
pcm->buffer_attr.minreq = io->period_size * pcm->frame_size;
pcm->buffer_attr.fragsize = io->period_size * pcm->frame_size;
Index: alsa-plugins.spec
===================================================================
RCS file: /cvs/pkgs/rpms/alsa-plugins/devel/alsa-plugins.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- alsa-plugins.spec 15 Aug 2007 04:36:18 -0000 1.2
+++ alsa-plugins.spec 23 Sep 2007 23:47:00 -0000 1.3
@@ -1,6 +1,6 @@
Name: alsa-plugins
Version: 1.0.14
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The Advanced Linux Sound Architecture (ALSA) Plugins
# All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
License: GPLv2+ and LGPLv2+
@@ -13,6 +13,7 @@
Source4: samplerate.conf
Source5: upmix.conf
Source6: vdownmix.conf
+Patch0: 1.0.14-buffer-attr.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel
@@ -93,6 +94,7 @@
%prep
%setup -q -n %{name}-%{version}
+%patch0 -p1 -b .buffer_attr
%build
%configure --disable-static \
@@ -160,6 +162,9 @@
%{_libdir}/alsa-lib/libasound_module_pcm_vdownmix.so
%changelog
+* Mon Sep 24 2007 Lennart Poettering <lpoetter at redhat.com> - 1.0.14-3
+- Change PulseAudio buffering defaults to more sane values
+
* Tue Aug 14 2007 Eric Moret <eric.moret at epita.fr> - 1.0.14-2
- Adding pulse as ALSA "default" pcm and ctl when the alsa-plugins-pulseaudio
package is installed, fixing #251943.
- Previous message (by thread): rpms/gstreamer-plugins-pulse/devel .cvsignore, 1.4, 1.5 gstreamer-plugins-pulse.spec, 1.4, 1.5 sources, 1.4, 1.5
- Next message (by thread): rpms/vinagre/devel .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 vinagre.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list