.gear/rules | 2 + .../tags/4ac2cff27fab4f59d10bc8d440d8f0f1dc51d731 | 14 ++ .gear/tags/list | 1 + alsa-plugins.spec | 272 +++++++++++++++++++++ pph/Makefile.am | 2 +- pulse-alsa.conf | 15 ++ pulse.conf | 16 ++ 7 files changed, 321 insertions(+), 1 deletion(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..4b0460c --- /dev/null +++ b/.gear/rules @@ -0,0 +1,2 @@ +tar: v@version@:. +diff: v@version@:. . diff --git a/.gear/tags/4ac2cff27fab4f59d10bc8d440d8f0f1dc51d731 b/.gear/tags/4ac2cff27fab4f59d10bc8d440d8f0f1dc51d731 new file mode 100644 index 0000000..83be391 --- /dev/null +++ b/.gear/tags/4ac2cff27fab4f59d10bc8d440d8f0f1dc51d731 @@ -0,0 +1,14 @@ +object a92944bf60f7d577c730a2856881e1ff5cbfeb88 +type commit +tag v1.2.7.1 +tagger Jaroslav Kysela 1655459093 +0200 + +Release v1.2.7.1 + +Core + - Release v1.2.7.1 +Jack PCM plugin + - jack: use program_invocation_short_name + - jack: implement pcm operation sw_params + +Signed-off-by: Jaroslav Kysela diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..a6098e3 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +4ac2cff27fab4f59d10bc8d440d8f0f1dc51d731 v1.2.7.1 diff --git a/alsa-plugins.spec b/alsa-plugins.spec new file mode 100644 index 0000000..78ae9df --- /dev/null +++ b/alsa-plugins.spec @@ -0,0 +1,272 @@ +Name: alsa-plugins +Version: 1.2.7.1 +Release: alt1 +Epoch: 1 + +Summary: Advanced Linux Sound Architecture (ALSA) plugins +License: LGPLv2.1+ +Group: System/Libraries + +Url: http://www.alsa-project.org +Packager: Valery Inozemtsev +Source: %name-%version.tar +Patch: %name-%version-%release.patch + +BuildRequires: gcc-c++ libalsa-devel libavcodec-devel libdbus-devel +BuildRequires: libpulseaudio-devel libsamplerate-devel libspeex-devel libspeexdsp-devel + +%define _unpackaged_files_terminate_build 1 + +Summary(ru_RU.UTF-8): Плагины ALSA +Summary(uk_UA.UTF-8): Плагіни ALSA + +%description +Advanced Linux Sound Architecture (ALSA) plugins. + +%description -l ru_RU.UTF-8 +Этот пакет содержит плагины ALSA. + +%description -l uk_UA.UTF-8 +Цей пакунок містить плагіни ALSA. + +%package pulse +Summary: ALSA pulseaudio plugin +Group: Sound +Requires: libalsa >= 1.0.21a +Requires: pulseaudio-daemon + +%description pulse +ALSA pulseaudio plugin + +%prep +%setup +%patch -p1 + +%build +%autoreconf +%configure +%make_build + +%install +%makeinstall_std + +# drop unneeded files +find %buildroot%_libdir/alsa-lib/ -name '*.la' -delete + +# install configs from Debian +install -D pulse-alsa.conf %buildroot%_datadir/alsa/pulse-alsa.conf +install -D pulse.conf %buildroot%_datadir/alsa/alsa.conf.d/99-pulse.conf + +# turn symlinks into relative ones +find %buildroot%_sysconfdir/alsa/conf.d/ -type l -delete +for i in %buildroot%_datadir/alsa/alsa.conf.d/*.conf; do + ln -sr "$i" %buildroot%_sysconfdir/alsa/conf.d/ +done + +%files +# I know of README-pulse, too much hassle with merging docdirs +%doc doc/*.txt doc/README-* +%config(noreplace) %_sysconfdir/alsa/conf.d/*.conf +%exclude %_sysconfdir/alsa/conf.d/*pulse*.conf +%_datadir/alsa/alsa.conf.d/*.conf +%exclude %_datadir/alsa/alsa.conf.d/*pulse*.conf +%_libdir/alsa-lib/*.so +%exclude %_libdir/alsa-lib/*pulse*.so + +%files pulse +%_libdir/alsa-lib/*pulse*.so +%_sysconfdir/alsa/conf.d/99-pulseaudio-default.conf.example +%_sysconfdir/alsa/conf.d/50-pulseaudio.conf +%_sysconfdir/alsa/conf.d/99-pulse.conf +%_datadir/alsa/pulse-alsa.conf +%_datadir/alsa/alsa.conf.d/50-pulseaudio.conf +%_datadir/alsa/alsa.conf.d/99-pulse.conf + +%changelog +* Sun Nov 20 2022 Michael Shigorin 1:1.2.7.1-alt1 +- 1.2.7.1 + +* Wed Dec 08 2021 Michael Shigorin 1:1.2.6-alt1 +- 1.2.6 + +* Mon Aug 23 2021 Egor Ignatov 1:1.2.5-alt1 +- 1.2.5 + +* Mon Feb 15 2021 Aleksei Nikiforov 1:1.2.2-alt2 +- Imported config files from Debian for alsa-plugins-pulse. + Upstream config 50-pulseaudio.conf alone sometimes isn't enough. + +* Thu Feb 20 2020 Michael Shigorin 1:1.2.2-alt1 +- 1.2.2 + +* Mon Nov 18 2019 Michael Shigorin 1:1.2.1-alt1 +- 1.2.1 +- actually package plugin configuration files +- dropped pulse.conf in favour of upstream 50-pulseaudio.conf + +* Mon May 13 2019 Michael Shigorin 1:1.1.9-alt1 +- 1.1.9 + +* Thu Jan 24 2019 Michael Shigorin 1:1.1.8-alt1 +- 1.1.8 + +* Wed Oct 17 2018 Michael Shigorin 1:1.1.7-alt1 +- 1.1.7 + +* Mon Jun 25 2018 Anton Farygin 1:1.1.6-alt2 +- rebuilt for ffmpeg-4 + +* Wed Apr 04 2018 Michael Shigorin 1:1.1.6-alt1 +- 1.1.6 + +* Wed Nov 22 2017 Michael Shigorin 1:1.1.5-alt1 +- 1.1.5 + +* Sat Jun 03 2017 Anton Farygin 1:1.1.4-alt3 +- rebuild with debuginfo-enabled ffmpeg + +* Sat Jun 03 2017 Anton Farygin 1:1.1.4-alt2 +- rebuild with ffmpeg-3.3.1 + +* Mon May 29 2017 Michael Shigorin 1:1.1.4-alt1 +- 1.1.4 + +* Mon Jun 20 2016 Michael Shigorin 1:1.1.1-alt1 +- 1.1.1 + +* Mon Nov 30 2015 Igor Vlasenko 1:1.1.0-alt1.1 +- NMU: added BR: libspeexdsp-devel + +* Mon Nov 09 2015 Michael Shigorin 1:1.1.0-alt1 +- 1.1.0 + +* Fri Feb 27 2015 Michael Shigorin 1:1.0.29-alt2 +- added 50-pulseaudio.conf +- converted spec to UTF-8 + +* Fri Feb 27 2015 Michael Shigorin 1:1.0.29-alt1 +- 1.0.29 + +* Wed Jun 18 2014 Michael Shigorin 1:1.0.28-alt1 +- 1.0.28 + +* Fri May 30 2014 Sergey Bolshakov 1:1.0.27-alt3 +- rebuilt with libav10 + +* Sat Apr 13 2013 Michael Shigorin 1:1.0.27-alt2 +- retag + +* Sat Apr 13 2013 Michael Shigorin 1:1.0.27-alt1 +- 1.0.27 + +* Fri Sep 07 2012 Michael Shigorin 1:1.0.26-alt2 +- retag + +* Thu Sep 06 2012 Michael Shigorin 1:1.0.26-alt1 +- 1.0.26 +- moved pulse.conf: + from %_datadir/alsa/pulse.conf + to %_datadir/alsa/alsa.conf.d/pulse.conf + +* Wed Aug 29 2012 Eugeny A. Rostovtsev (REAL) 1:1.0.24-alt2.1 +- Fixed build with new glibc + +* Fri Sep 09 2011 Michael Shigorin 1:1.0.24-alt2 +- rebuilt against libva +- merged spec with my old 1.0.22-alt1 + +* Wed Feb 16 2011 Michael Shigorin 1:1.0.24-alt1 +- 1.0.24 + +* Sun Apr 18 2010 Valery Inozemtsev 1:1.0.23-alt1 +- 1.0.23 + +* Thu Dec 24 2009 Valery Inozemtsev 1:1.0.22-alt1 +- 1.0.22 + +* Tue Sep 01 2009 Valery Inozemtsev 1.0.21-alt1 +- 1.0.21 +- new subpackage %name-pulse (closes: #21534) + +* Tue Jul 28 2009 Valery Inozemtsev 1.0.20-alt4 +- rebuild with libavutil.so.50 + +* Mon Jul 06 2009 Valery Inozemtsev 1.0.20-alt3 +- disabled jack plugin + +* Sun May 17 2009 Valery Inozemtsev 1.0.20-alt2 +- rebuild + +* Thu May 07 2009 Valery Inozemtsev 1.0.20-alt1 +- 1.0.20 + +* Thu Feb 05 2009 Valery Inozemtsev 1.0.19-alt2 +- rebuild with libavcodec.so.52 + +* Mon Jan 19 2009 Valery Inozemtsev 1.0.19-alt1 +- 1.0.19 + +* Wed Oct 29 2008 Valery Inozemtsev 1.0.18-alt1 +- 1.0.18 + +* Wed Jul 16 2008 Valery Inozemtsev 1.0.17-alt1 +- 1.0.17 + +* Thu May 01 2008 Valery Inozemtsev 1.0.16-alt1 +- 1.0.16 + +* Sun Jan 27 2008 Valery Inozemtsev 1.0.15-alt1 +- 1.0.15 +- spec cleanup +- update build dependencies + +* Mon Jun 11 2007 Michael Shigorin 1.0.14-alt1 +- 1.0.14 +- fixed install +- set _unpackaged_files_terminate_build + +* Mon Oct 16 2006 Michael Shigorin 1.0.13-alt1 +- 1.0.13 + +* Tue Sep 05 2006 Igor Zubkov 1.0.12-alt2 +- NMU +- add PulseAudio support (polypaudio removed) + +* Sun Sep 03 2006 Michael Shigorin 1.0.12-alt1 +- 1.0.12 +- changed BuildPreReq: kernel-headers-std to linux-libc-headers +- fixed README-polyp being renamed + +* Wed May 31 2006 Michael Shigorin 1.0.11-alt5 +- rebuilt against libpolyp-0.9 + +* Sat Apr 29 2006 Michael Shigorin 1.0.11-alt4 +- accepted changes by icesik@ +- minor cleanup + +* Fri Apr 28 2006 Igor Zubkov 1.0.11-alt3 +- NMU +- real fix #9447 +- buildreq +- add packager tag +- add docs + +* Thu Apr 27 2006 Michael Shigorin 1.0.11-alt2 +- fix #9447 (polypaudio support), thanks icesik@ +- remove (unpackaged) *.la + +* Wed Apr 19 2006 Michael Shigorin 1.0.11-alt1 +- 1.0.11 + +* Wed Apr 05 2006 Michael Shigorin 1.0.11-alt0.4 +- 1.0.11rc4 +- minor spec cleanup + +* Wed Nov 16 2005 Michael Shigorin 1.0.10-alt1 +- 1.0.10 + +* Thu Jun 23 2005 Michael Shigorin 1.0.9-alt1 +- 1.0.9 + +* Thu Jun 09 2005 Michael Shigorin 1.0.9-alt0 +- built for ALT Linux diff --git a/pph/Makefile.am b/pph/Makefile.am index 6938b74..a2a308b 100644 --- a/pph/Makefile.am +++ b/pph/Makefile.am @@ -12,7 +12,7 @@ AM_CFLAGS = -DVAR_ARRAYS -Wall -g @ALSA_CFLAGS@ AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined $(LDFLAGS_NOUNDEFINED) libasound_module_rate_speexrate_la_SOURCES = rate_speexrate.c -libasound_module_rate_speexrate_la_LIBADD = @ALSA_LIBS@ +libasound_module_rate_speexrate_la_LIBADD = @ALSA_LIBS@ -lm if USE_LIBSPEEX AM_CFLAGS += @speexdsp_CFLAGS@ libasound_module_rate_speexrate_la_LIBADD += @speexdsp_LIBS@ diff --git a/pulse-alsa.conf b/pulse-alsa.conf new file mode 100644 index 0000000..be690fc --- /dev/null +++ b/pulse-alsa.conf @@ -0,0 +1,15 @@ +# This file is referred to by /usr/share/alsa/pulse.conf to set pulseaudio as +# the default output plugin for applications using alsa when PulseAudio is +# running. + +pcm.!default { + type pulse + hint { + show on + description "Playback/recording through the PulseAudio sound server" + } +} + +ctl.!default { + type pulse +} diff --git a/pulse.conf b/pulse.conf new file mode 100644 index 0000000..0813d04 --- /dev/null +++ b/pulse.conf @@ -0,0 +1,16 @@ +# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as +# default output for applications using alsa when pulseaudio is running. +hook_func.pulse_load_if_running { + lib "libasound_module_conf_pulse.so" + func "conf_pulse_hook_load_if_running" +} + +@hooks [ + { + func pulse_load_if_running + files [ + "/usr/share/alsa/pulse-alsa.conf" + ] + errors false + } +]