[timidity++] add upstream patch to fix garbled sound when start playing (#710927)

Christian Krause chkr at fedoraproject.org
Mon Nov 7 20:49:32 UTC 2011


commit 4a0fae89faaebfd7c38f3bb3cb57bfa05f936d7a
Author: Christian Krause <chkr at fedoraproject.org>
Date:   Mon Nov 7 21:48:59 2011 +0100

    add upstream patch to fix garbled sound when start playing (#710927)

 TiMidity++-2.13.2-noise-fix.patch |   12 ++++++++++++
 timidity++.spec                   |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/TiMidity++-2.13.2-noise-fix.patch b/TiMidity++-2.13.2-noise-fix.patch
new file mode 100644
index 0000000..0a638f5
--- /dev/null
+++ b/TiMidity++-2.13.2-noise-fix.patch
@@ -0,0 +1,12 @@
+--- TiMidity++-2.13.2.orig/timidity/effect.c	2004-03-25 00:51:51.000000000 -0500
++++ TiMidity++-2.13.2.orig/timidity/effect.c	2011-11-05 09:08:37.424014149 -0400
+@@ -526,7 +526,7 @@ 
+ 
+ static inline int32 my_mod(int32 x, int32 n)
+ {
+-	if (x > n)
++	if (x >= n)
+ 		x -= n;
+ 	return x;
+ }
+
diff --git a/timidity++.spec b/timidity++.spec
index 68d460d..cb748d9 100644
--- a/timidity++.spec
+++ b/timidity++.spec
@@ -1,7 +1,7 @@
 Summary: A software wavetable MIDI synthesizer
 Name: timidity++
 Version: 2.13.2
-Release: 24%{?dist}
+Release: 25%{?dist}
 Group: Applications/Multimedia
 Source: http://downloads.sourceforge.net/timidity/TiMidity++-%{version}.tar.bz2
 Source1: fedora-timidity.desktop
@@ -23,6 +23,8 @@ Patch15: TiMidity++-2.13.2-dynlibroot.patch
 Patch16: TiMidity++-2.13.2-cfgfile-name.patch
 Patch17: TiMidity++-2.13.2-missing-protos.patch
 Patch18: TiMidity++-2.13.2-fork-early.patch
+# http://timidity.cvs.sourceforge.net/viewvc/timidity/timidity/timidity/effect.c?r1=1.22&r2=1.23
+Patch19: TiMidity++-2.13.2-noise-fix.patch
 
 License: GPLv2
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -57,6 +59,7 @@ sound card does not natively support wave table format.
 %patch16 -p1
 %patch17 -p1
 %patch18 -p1
+%patch19 -p1
 
 
 %build
@@ -115,6 +118,9 @@ fi
 
 
 %changelog
+* Mon Nov 07 2011 Christian Krause <chkr at fedoraproject.org> - 2.13.2-25
+- add upstream patch to fix garbled sound when start playing (#710927)
+
 * Wed Jul 27 2011 Jindrich Novy <jnovy at redhat.com> - 2.13.2-24
 - fix segfault in detect() introduced by libao-first patch (#711224)
 


More information about the scm-commits mailing list