diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-09-02 14:35:22 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-09-02 14:35:22 +0000 |
commit | 622e4fea189441d1919471934ea567bee6c7fcfd (patch) | |
tree | f34319a1e81226142f1e085d31cff94a9f97ba8e /media-libs/openal/files | |
parent | trim whitespace (diff) | |
download | gentoo-2-622e4fea189441d1919471934ea567bee6c7fcfd.tar.gz gentoo-2-622e4fea189441d1919471934ea567bee6c7fcfd.tar.bz2 gentoo-2-622e4fea189441d1919471934ea567bee6c7fcfd.zip |
Added a new revision with dmix patch to resolve bug #104487. Changing KEYWORDS from arch to ~arch on all stable architectures.
(Portage version: 1.589-cvs)
Diffstat (limited to 'media-libs/openal/files')
-rw-r--r-- | media-libs/openal/files/digest-openal-20050504-r2 | 1 | ||||
-rw-r--r-- | media-libs/openal/files/openal-20050504-alsa_dmix.patch | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/media-libs/openal/files/digest-openal-20050504-r2 b/media-libs/openal/files/digest-openal-20050504-r2 new file mode 100644 index 000000000000..fc84cbeaf891 --- /dev/null +++ b/media-libs/openal/files/digest-openal-20050504-r2 @@ -0,0 +1 @@ +MD5 c2b74df0028d36d24745b4db9867de97 openal-20050504.tar.bz2 6284126 diff --git a/media-libs/openal/files/openal-20050504-alsa_dmix.patch b/media-libs/openal/files/openal-20050504-alsa_dmix.patch new file mode 100644 index 000000000000..2cd6f569d74d --- /dev/null +++ b/media-libs/openal/files/openal-20050504-alsa_dmix.patch @@ -0,0 +1,41 @@ +--- ./openal-20050504/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); + } +- |