diff --git a/0001-ao_pulse.c-fix-latency-calculation.patch b/0001-ao_pulse.c-fix-latency-calculation.patch deleted file mode 100644 index f6a61fc..0000000 --- a/0001-ao_pulse.c-fix-latency-calculation.patch +++ /dev/null @@ -1,26 +0,0 @@ -From de5547ebc2b0ed37d69889c3c3aec6553d2d84cb Mon Sep 17 00:00:00 2001 -From: Stas Sergeev -Date: Wed, 18 Feb 2015 00:36:28 +0300 -Subject: [PATCH] ao_pulse.c: fix latency calculation - -This fixes periodic underruns with pa plugin. ---- - src/plugins/pulse/ao_pulse.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c -index ff5497f..9c0f64a 100644 ---- a/src/plugins/pulse/ao_pulse.c -+++ b/src/plugins/pulse/ao_pulse.c -@@ -259,7 +259,7 @@ int ao_plugin_open(ao_device *device, ao_sample_format *format) { - battr.prebuf = battr.minreq = battr.fragsize = -1; - - battr.tlength = (int)(internal->buffer_time * format->rate) / 1000000 * -- ((format->bits+7)/8) + device->output_channels; -+ ((format->bits+7)/8) * device->output_channels; - battr.minreq = battr.tlength/4; - battr.maxlength = battr.tlength+battr.minreq; - --- -2.1.0 - diff --git a/1.2.2.tar.gz b/1.2.2.tar.gz new file mode 100644 index 0000000..2c424d3 Binary files /dev/null and b/1.2.2.tar.gz differ diff --git a/libao-1.2.0.tar.gz b/libao-1.2.0.tar.gz deleted file mode 100644 index ab69432..0000000 Binary files a/libao-1.2.0.tar.gz and /dev/null differ diff --git a/libao.spec b/libao.spec index a8f4d69..c73e0df 100644 --- a/libao.spec +++ b/libao.spec @@ -1,12 +1,11 @@ Name: libao -Version: 1.2.0 -Release: 14 +Version: 1.2.2 +Release: 1 Summary: A cross platform audio library License: GPLv2+ URL: http://xiph.org/ao/ -Source0: http://downloads.xiph.org/releases/ao/libao-%{version}.tar.gz -Patch1: 0001-ao_pulse.c-fix-latency-calculation.patch -Patch2: d5221655dfd1a2156aa6be83b5aadea7c1e0f5bd.diff +Source0: https://github.com/xiph/libao/archive/refs/tags/1.2.2.tar.gz +Patch1: d5221655dfd1a2156aa6be83b5aadea7c1e0f5bd.diff BuildRequires: gcc alsa-lib-devel pkgconfig(libpulse) %description @@ -34,6 +33,7 @@ This contains man files for the using of libao. %prep %autosetup -p1 +./autogen.sh sed -i "s/-O20 -ffast-math//" configure @@ -69,5 +69,8 @@ rm -rf %{buildroot}/%{_docdir}/libao* %changelog +* Tue Dec 05 2023 Ge Wang - 1.2.2-1 +- Update to version 1.2.2 + * Thu Nov 28 2019 huyan - 1.2.0-14 - Package Initialization