Browse Source

Mathieu Doidy <mdoidy@roulaize.net>:

updated esound (0.2.32+patch to use alsa new pcm api) and xpdf (3.00)


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2308 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Mathieu 21 years ago
parent
commit
d2a6c6be0a
3 changed files with 47 additions and 4 deletions
  1. +43
    -0
      package/rene/esound/esound-alsa-pcm-newapi.patch
  2. +2
    -2
      package/rene/esound/esound.desc
  3. +2
    -2
      package/rene/xpdf/xpdf.desc

+ 43
- 0
package/rene/esound/esound-alsa-pcm-newapi.patch

@ -0,0 +1,43 @@
**** This patch should be removed when updating to esound >0.2.32
****
**** patch by £ukasz Mach <lukasz@mach.com.pl>
**** released under the GPL license
****
**** updates to the new alsa pcm api used since 0.9.0_rc4
**** (http://bugzilla.gnome.org/show_bug.cgi?id=129709)
--- ../esound-0.2.32.orig/audio_alsa09.c Thu Mar 20 09:34:19 2003
+++ ./audio_alsa09.c Sat Dec 20 03:01:11 2003
@@ -136,15 +136,17 @@
alsaerr = -1;
return handle;
}
-
- err = snd_pcm_hw_params_set_rate_near(handle, hwparams, speed, 0);
+
+ int t_dir=0;
+ int t_speed=speed;
+ err = snd_pcm_hw_params_set_rate_near(handle, hwparams, &t_speed, &t_dir);
if (err < 0) {
if (alsadbg)
fprintf(stderr, "%s\n", snd_strerror(err));
alsaerr = -1;
return handle;
}
- if (err != speed) {
+ if (t_speed != speed) {
if (alsadbg)
fprintf(stderr, "Rate not avaliable %i != %i\n", speed, err);
alsaerr = -1;
@@ -176,8 +178,9 @@
alsaerr = -1;
return handle;
}
-
- err = snd_pcm_hw_params_set_buffer_size_near(handle, hwparams, BUFFERSIZE);
+
+ snd_pcm_uframes_t t_bufsize=BUFFERSIZE;
+ err = snd_pcm_hw_params_set_buffer_size_near(handle, hwparams, &t_bufsize);
if (err < 0) {
if (alsadbg)
fprintf(stderr, "Buffersize:%s\n", snd_strerror(err));

+ 2
- 2
package/rene/esound/esound.desc

@ -33,8 +33,8 @@
[L] GPL
[S] Stable
[V] 0.2.31
[V] 0.2.32
[P] X -----5---9 209.000
[D] 3554980958 esound-0.2.31.tar.bz2 ftp://ftp.linux.org.uk/mirrors/ftp.gnome.org/sources/esound/0.2/
[D] 2869999924 esound-0.2.32.tar.bz2 ftp://ftp.linux.org.uk/mirrors/ftp.gnome.org/sources/esound/0.2/

+ 2
- 2
package/rene/xpdf/xpdf.desc

@ -35,9 +35,9 @@
[L] GPL
[S] Stable
[V] 2.03
[V] 3.00
[P] X -------7-9 373.000
[D] 2146086023 xpdf-2.03.tar.gz ftp://ftp.foolabs.com/pub/xpdf/
[D] 980943908 xpdf-3.00.tar.gz ftp://ftp.foolabs.com/pub/xpdf/
[D] 5395543 t1lib-1.3.tar.gz ftp://ftp.foolabs.com/pub/xpdf/

Loading…
Cancel
Save