]> git.pld-linux.org Git - packages/esound.git/blame - esound-alsa-pcm-newapi.patch
- s/Conflicts/Obsoletes/ to allow upgrade from -oss to -alsa
[packages/esound.git] / esound-alsa-pcm-newapi.patch
CommitLineData
be7b32a9 1--- ../esound-0.2.32.orig/audio_alsa09.c Thu Mar 20 09:34:19 2003
2+++ ./audio_alsa09.c Sat Dec 20 03:01:11 2003
3@@ -136,15 +136,17 @@
4 alsaerr = -1;
5 return handle;
6 }
7-
8- err = snd_pcm_hw_params_set_rate_near(handle, hwparams, speed, 0);
9+
10+ int t_dir=0;
11+ int t_speed=speed;
12+ err = snd_pcm_hw_params_set_rate_near(handle, hwparams, &t_speed, &t_dir);
13 if (err < 0) {
14 if (alsadbg)
15 fprintf(stderr, "%s\n", snd_strerror(err));
16 alsaerr = -1;
17 return handle;
18 }
19- if (err != speed) {
20+ if (t_speed != speed) {
21 if (alsadbg)
22 fprintf(stderr, "Rate not avaliable %i != %i\n", speed, err);
23 alsaerr = -1;
24@@ -176,8 +178,9 @@
25 alsaerr = -1;
26 return handle;
27 }
28-
29- err = snd_pcm_hw_params_set_buffer_size_near(handle, hwparams, BUFFERSIZE);
30+
31+ snd_pcm_uframes_t t_bufsize=BUFFERSIZE;
32+ err = snd_pcm_hw_params_set_buffer_size_near(handle, hwparams, &t_bufsize);
33 if (err < 0) {
34 if (alsadbg)
35 fprintf(stderr, "Buffersize:%s\n", snd_strerror(err));
This page took 0.036829 seconds and 4 git commands to generate.