rpms/wildmidi/F-9 wildmidi-0.2.2-bigendian.patch, NONE, 1.1 wildmidi.spec, 1.5, 1.6

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Mon Jul 7 15:09:00 UTC 2008


Author: jwrdegoede

Update of /cvs/extras/rpms/wildmidi/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15862

Modified Files:
	wildmidi.spec 
Added Files:
	wildmidi-0.2.2-bigendian.patch 
Log Message:
* Mon Jul  7 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.2.2-5
- Fix wildmidi cmdline player sound output on bigendian archs (bz 454198),
  patch by Ian Chapman


wildmidi-0.2.2-bigendian.patch:

--- NEW FILE wildmidi-0.2.2-bigendian.patch ---
--- wildmidi-0.2.2/src/wildmidi.c.orig	2004-01-28 18:13:46.000000000 +0000
+++ wildmidi-0.2.2/src/wildmidi.c	2008-07-06 14:31:38.000000000 +0100
@@ -442,7 +442,7 @@
 		return -1;
 	}
 	
-	if (snd_pcm_hw_params_set_format (pcm, hw, SND_PCM_FORMAT_S16) < 0) {
+	if (snd_pcm_hw_params_set_format (pcm, hw, SND_PCM_FORMAT_S16_LE) < 0) {
 		printf("ALSA does not support 16bit signed audio for your soundcard\n");
 		close_alsa_output();
 		return -1;


Index: wildmidi.spec
===================================================================
RCS file: /cvs/extras/rpms/wildmidi/F-9/wildmidi.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- wildmidi.spec	9 Feb 2008 14:03:23 -0000	1.5
+++ wildmidi.spec	7 Jul 2008 15:08:15 -0000	1.6
@@ -1,6 +1,6 @@
 Name:           wildmidi
 Version:        0.2.2
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        WildMidi softsynth midi player
 Group:          Applications/Multimedia
 License:        GPLv2+
@@ -9,6 +9,7 @@
 Patch0:         wildmidi-0.2.2-opt.patch
 Patch1:         wildmidi-0.2.2-cfg-abs-path.patch
 Patch2:         wildmidi-0.2.2-pulseaudio.patch
+Patch3:         wildmidi-0.2.2-bigendian.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  alsa-lib-devel libtool
 Requires:       %{name}-libs = %{version}-%{release}
@@ -47,6 +48,7 @@
 %patch0 -p1 -z .opt
 %patch1 -p1 -z .abs
 %patch2 -p1 -z .pa
+%patch3 -p1
 sed -i 's/\r//g' COPYING
 # we need to update libtool to fix compilation on systems which have lib64
 autoreconf -i -f
@@ -88,6 +90,10 @@
 
 
 %changelog
+* Mon Jul  7 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.2.2-5
+- Fix wildmidi cmdline player sound output on bigendian archs (bz 454198),
+  patch by Ian Chapman
+
 * Sat Feb  9 2008 Hans de Goede <j.w.r.degoede at hhs.nl> 0.2.2-4
 - Change alsa output code to use regular write mode instead of mmap to make
   it work with pulseaudio (bz 431846)




More information about the scm-commits mailing list