summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-10-24 16:53:14 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-10-24 16:53:14 +0000
commiteb7ba1011f8798f7802a96dd7f3acb8ed0d20cd8 (patch)
tree6bb9d404800968d824ebeecd18541078e19e914d /media-libs/openal/files
parentMarking ethereal-0.10.13 ppc64 stable for bug 109348 (diff)
downloadgentoo-2-eb7ba1011f8798f7802a96dd7f3acb8ed0d20cd8.tar.gz
gentoo-2-eb7ba1011f8798f7802a96dd7f3acb8ed0d20cd8.tar.bz2
gentoo-2-eb7ba1011f8798f7802a96dd7f3acb8ed0d20cd8.zip
Updated to CVS HEAD and closing bug #110270.
(Portage version: 2.0.53_rc6)
Diffstat (limited to 'media-libs/openal/files')
-rw-r--r--media-libs/openal/files/digest-openal-200510241
-rw-r--r--media-libs/openal/files/openal-20051024-alsa_dmix.patch41
2 files changed, 42 insertions, 0 deletions
diff --git a/media-libs/openal/files/digest-openal-20051024 b/media-libs/openal/files/digest-openal-20051024
new file mode 100644
index 000000000000..a66c057f2520
--- /dev/null
+++ b/media-libs/openal/files/digest-openal-20051024
@@ -0,0 +1 @@
+MD5 c375bd9751f044e8a77882ad4ab3c9f8 openal-20051024.tar.bz2 4983129
diff --git a/media-libs/openal/files/openal-20051024-alsa_dmix.patch b/media-libs/openal/files/openal-20051024-alsa_dmix.patch
new file mode 100644
index 000000000000..3e35ebbaaf6a
--- /dev/null
+++ b/media-libs/openal/files/openal-20051024-alsa_dmix.patch
@@ -0,0 +1,41 @@
+--- ./openal-20051024/linux/src/arch/alsa/alsa.c 2005-03-25 11:48:23.000000000 +0100
++++ ./openal-modified/linux/src/arch/alsa/alsa.c 2005-09-01 16:31:45.000000000 +0200
+@@ -58,6 +58,7 @@
+ static int (*psnd_pcm_hw_params_set_channels)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val) = NULL;
+ static int (*psnd_pcm_hw_params_set_format)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val) = NULL;
+ static int (*psnd_pcm_hw_params_set_periods)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) = NULL;
++static int (*psnd_pcm_hw_params_set_periods_near)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) = NULL;
+ static int (*psnd_pcm_hw_params_set_rate)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir) = NULL;
+ static int (*psnd_pcm_hw_params_set_rate_near)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir) = NULL;
+ static size_t (*psnd_pcm_hw_params_sizeof)(void) = NULL;
+@@ -143,6 +144,7 @@
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_format);
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_period_size);
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_periods);
++ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_periods_near);
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_rate);
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_set_rate_near);
+ OPENAL_LOAD_ALSA_SYMBOL(snd_pcm_hw_params_sizeof);
+@@ -450,7 +452,7 @@
+ return AL_FALSE;
+ }
+
+- err = psnd_pcm_hw_params_set_periods(phandle, setup, ai->periods, 0);
++ err = psnd_pcm_hw_params_set_periods_near(phandle, setup, &ai->periods, 0);
+ if (err < 0) {
+ _alDebug(ALD_MAXIMUS, __FILE__, __LINE__,
+ "set_read_alsa: %s\n", psnd_strerror(err));
+@@ -622,7 +624,7 @@
+
+
+ /* Set number of periods. Periods used to be called fragments. */
+- err = psnd_pcm_hw_params_set_periods(phandle, setup, ai->periods, 0);
++ err = psnd_pcm_hw_params_set_periods_near(phandle, setup, &ai->periods, 0);
+ if (err < 0) {
+ _alDebug(ALD_MAXIMUS, __FILE__, __LINE__,
+ "set_write_alsa: %s\n", psnd_strerror(err));
+@@ -812,4 +814,3 @@
+
+ return(retval*chans);
+ }
+-