update to version 1.2.2
This commit is contained in:
parent
56a8fc89e9
commit
ad0992eed6
@ -1,26 +0,0 @@
|
||||
From de5547ebc2b0ed37d69889c3c3aec6553d2d84cb Mon Sep 17 00:00:00 2001
|
||||
From: Stas Sergeev <stsp@users.sourceforge.net>
|
||||
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
|
||||
|
||||
BIN
1.2.2.tar.gz
Normal file
BIN
1.2.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
13
libao.spec
13
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 <wang__ge@126.com> - 1.2.2-1
|
||||
- Update to version 1.2.2
|
||||
|
||||
* Thu Nov 28 2019 huyan <hu.huyan@huawei.com> - 1.2.0-14
|
||||
- Package Initialization
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user