From e54310e5307b2ca6c5f1af0e6d80883c66d1f00d Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 10 May 2006 05:33:09 +0000 Subject: [PATCH] add ALSA function pointer... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2269 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_alsa.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/client/snd_alsa.c b/engine/client/snd_alsa.c index fc7ee3d1a..49cc33867 100755 --- a/engine/client/snd_alsa.c +++ b/engine/client/snd_alsa.c @@ -50,6 +50,7 @@ int (*psnd_pcm_sw_params_set_start_threshold) (snd_pcm_t *pcm, snd_pcm_sw_params int (*psnd_pcm_sw_params_set_stop_threshold) (snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val); int (*psnd_pcm_sw_params) (snd_pcm_t *pcm, snd_pcm_sw_params_t *params); int (*psnd_pcm_hw_params_get_buffer_size) (const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); +int (*psnd_pcm_hw_params_set_buffer_size_near) (snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val); snd_pcm_sframes_t (*psnd_pcm_avail_update) (snd_pcm_t *pcm); int (*psnd_pcm_mmap_begin) (snd_pcm_t *pcm, const snd_pcm_channel_area_t **areas, snd_pcm_uframes_t *offset, snd_pcm_uframes_t *frames); snd_pcm_sframes_t (*psnd_pcm_mmap_commit) (snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t frames); @@ -160,6 +161,7 @@ static qboolean Alsa_InitAlsa(void) psnd_pcm_start = dlsym(alsasharedobject, "snd_pcm_start"); psnd_pcm_hw_params_sizeof = dlsym(alsasharedobject, "snd_pcm_hw_params_sizeof"); psnd_pcm_sw_params_sizeof = dlsym(alsasharedobject, "snd_pcm_sw_params_sizeof"); + psnd_pcm_hw_params_set_buffer_size_near = dlsym(alsasharedobject, "snd_pcm_hw_params_set_buffer_size_near"); alsaworks = psnd_pcm_open && psnd_pcm_close @@ -182,7 +184,8 @@ static qboolean Alsa_InitAlsa(void) && psnd_pcm_mmap_commit && psnd_pcm_start && psnd_pcm_hw_params_sizeof - && psnd_pcm_sw_params_sizeof; + && psnd_pcm_sw_params_sizeof + && psnd_pcm_hw_params_set_buffer_size_near; return alsaworks; }