]> git.pld-linux.org Git - packages/esound.git/commitdiff
- new ALSA api patch for esound.
authormaho <maho@pld-linux.org>
Sat, 20 Dec 2003 02:26:56 +0000 (02:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    esound-alsa-pcm-newapi.patch -> 1.1

esound-alsa-pcm-newapi.patch [new file with mode: 0644]

diff --git a/esound-alsa-pcm-newapi.patch b/esound-alsa-pcm-newapi.patch
new file mode 100644 (file)
index 0000000..495e747
--- /dev/null
@@ -0,0 +1,35 @@
+--- ../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)); 
This page took 0.057273 seconds and 4 git commands to generate.