[audacious-plugins] - In pulse_flush() start with pulse_pause() to pa_stream_cork() playback quickly in order to avoid

Michael Schwendt mschwendt at fedoraproject.org
Sat Aug 14 16:34:39 UTC 2010


commit 8ea50bc5fe7586467d212c3d59345f861ab5ea8a
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Sat Aug 14 18:34:32 2010 +0200

    - In pulse_flush() start with pulse_pause() to pa_stream_cork()
      playback quickly in order to avoid loud clicks/noise.

 audacious-plugins-2.4-pulse-flush.patch |   12 ++++++++++++
 audacious-plugins.spec                  |    9 ++++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/audacious-plugins-2.4-pulse-flush.patch b/audacious-plugins-2.4-pulse-flush.patch
new file mode 100644
index 0000000..ba9eb9a
--- /dev/null
+++ b/audacious-plugins-2.4-pulse-flush.patch
@@ -0,0 +1,12 @@
+diff -Nur audacious-plugins-fedora-2.4-rc1-orig/src/pulse_audio/pulse_audio.c audacious-plugins-fedora-2.4-rc1/src/pulse_audio/pulse_audio.c
+--- audacious-plugins-fedora-2.4-rc1-orig/src/pulse_audio/pulse_audio.c	2010-08-10 17:43:05.000000000 +0200
++++ audacious-plugins-fedora-2.4-rc1/src/pulse_audio/pulse_audio.c	2010-08-14 18:30:46.000000000 +0200
+@@ -422,6 +422,8 @@
+     pa_operation *o = NULL;
+     int success = 0;
+ 
++    pulse_pause(1);
++
+     CHECK_CONNECTED();
+ 
+     pa_threaded_mainloop_lock(mainloop);
diff --git a/audacious-plugins.spec b/audacious-plugins.spec
index ec10e11..1cae6da 100644
--- a/audacious-plugins.spec
+++ b/audacious-plugins.spec
@@ -5,7 +5,7 @@
 
 Name: audacious-plugins
 Version: 2.4
-Release: 0.8.rc1%{?dist}
+Release: 0.9.rc1%{?dist}
 Summary: Plugins for the Audacious media player
 Group: Applications/Multimedia
 URL: http://audacious-media-player.org/
@@ -22,6 +22,8 @@ Source1: audacious-sid.desktop
 Patch0: audacious-plugins-2.0.1-xmms-skindir.patch
 # fix hardcoded libdir replacement
 Patch1: audacious-plugins-2.4-libdir.patch
+#
+Patch2: audacious-plugins-2.4-pulse-flush.patch
 
 BuildRequires: audacious-devel >= %{aud_ver}
 BuildRequires: gettext
@@ -122,6 +124,7 @@ providers may build it with libsidplay 2.
 %setup -q -n audacious-plugins-fedora-%{version}-rc1
 %patch0 -p1 -b .xmms-skindir
 %patch1 -p1 -b .libdir
+%patch2 -p1 -b .pulse-flush
 
 for i in src/ladspa/ladspa.c
 do
@@ -209,6 +212,10 @@ update-desktop-database &> /dev/null || :
 
 
 %changelog
+* Sat Aug 14 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 2.4-0.9.rc1
+- In pulse_flush() start with pulse_pause() to pa_stream_cork()
+  playback quickly in order to avoid loud clicks/noise.
+
 * Tue Aug 10 2010 Michael Schwendt <mschwendt at fedoraproject.org> - 2.4-0.8.rc1
 - Update to rc1.
 


More information about the scm-commits mailing list