Author: jwrdegoede
Update of /cvs/extras/rpms/stormbaancoureur/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15278
Modified Files:
.cvsignore sources stormbaancoureur.desktop
stormbaancoureur.spec
Added Files:
stormbaancoureur-2.0.0-pulseaudio.patch
Log Message:
* Mon Dec 31 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 2.0.0-1
- New upstream release 2.0.0
- Fix sound when using pulseaudio
stormbaancoureur-2.0.0-pulseaudio.patch:
--- NEW FILE stormbaancoureur-2.0.0-pulseaudio.patch ---
--- stormbaancoureur-2.0.0/src-common/soundenginealsa.cxx 2007-10-13 19:38:04.000000000 +0200
+++ stormbaancoureur-2.0.0.new/src-common/soundenginealsa.cxx 2007-12-31 23:15:47.000000000 +0100
@@ -89,8 +90,11 @@
}
snd_pcm_uframes_t frames = framelag;
- snd_pcm_hw_params_set_period_size_near(handle, params, &frames, &dir);
+ snd_pcm_hw_params_set_buffer_size_near(handle, params, &frames);
+ frames = framelag / 10;
+ snd_pcm_hw_params_set_period_size_near(handle, params, &frames, NULL);
+
/* Write the parameters to the driver */
rc = snd_pcm_hw_params(handle, params);
if (rc < 0)
@@ -99,8 +103,8 @@
return;
}
snd_pcm_hw_params_get_period_size(params, &periodsz, &dir);
- batchsize = (int) ceilf(framelag / (float) periodsz);
- fprintf(stderr,"soundenginealsa.cxx: requested period %d, got period %d, use batchsize %d\n", framelag, (int) periodsz, batchsize);
+ batchsize = (int) ceilf((framelag/10) / (float) periodsz);
+ fprintf(stderr,"soundenginealsa.cxx: requested period %d, got period %d, use batchsize %d\n", framelag/10, (int) periodsz, batchsize);
simplefeed = new SoundFeedSimple(periodsz);
complexfeed = new SoundFeedComplex(periodsz);
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/stormbaancoureur/F-8/.cvsignore,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- .cvsignore 18 Oct 2007 13:55:55 -0000 1.8
+++ .cvsignore 31 Dec 2007 23:13:53 -0000 1.9
@@ -1 +1 @@
-stormbaancoureur-1.5.3.tar.gz
+stormbaancoureur-2.0.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/stormbaancoureur/F-8/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sources 18 Oct 2007 13:55:55 -0000 1.8
+++ sources 31 Dec 2007 23:13:53 -0000 1.9
@@ -1 +1 @@
-fa8890941964cf7144367a4f53a4da85 stormbaancoureur-1.5.3.tar.gz
+2d20b536c7616c74376b277132bd09c9 stormbaancoureur-2.0.0.tar.gz
Index: stormbaancoureur.desktop
===================================================================
RCS file: /cvs/extras/rpms/stormbaancoureur/F-8/stormbaancoureur.desktop,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- stormbaancoureur.desktop 25 Sep 2007 07:07:22 -0000 1.2
+++ stormbaancoureur.desktop 31 Dec 2007 23:13:53 -0000 1.3
@@ -1,9 +1,8 @@
[Desktop Entry]
-Encoding=UTF-8
Name=Stormbaan Coureur
Comment=Simulated obstacle course for automobiles
Exec=stormbaancoureur-wrapper
-Icon=stormbaancoureur.png
+Icon=stormbaancoureur
Terminal=false
StartupNotify=false
Type=Application
Index: stormbaancoureur.spec
===================================================================
RCS file: /cvs/extras/rpms/stormbaancoureur/F-8/stormbaancoureur.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- stormbaancoureur.spec 18 Oct 2007 13:55:55 -0000 1.5
+++ stormbaancoureur.spec 31 Dec 2007 23:13:53 -0000 1.6
@@ -1,5 +1,5 @@
Name: stormbaancoureur
-Version: 1.5.3
+Version: 2.0.0
Release: 1%{?dist}
Summary: Simulated obstacle course for automobiles
Group: Amusements/Games
@@ -9,6 +9,7 @@
Source1: %{name}.desktop
Source2: sturmbahnfahrer.png
Patch0: stormbaancoureur-1.5.3-no-static-ode.patch
+Patch1: stormbaancoureur-2.0.0-pulseaudio.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: plib-devel ode-devel freeglut-devel desktop-file-utils
BuildRequires: alsa-lib-devel
@@ -25,6 +26,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
sed -i 's|/usr/share/games/%{name}|%{_datadir}/%{name}|' src-%{name}/main.cxx
@@ -88,6 +90,10 @@
%changelog
+* Mon Dec 31 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 2.0.0-1
+- New upstream release 2.0.0
+- Fix sound when using pulseaudio
+
* Thu Oct 18 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl> 1.5.3-1
- New upstream bugfix release 1.5.3