From dfb02eebbf6439cd19c35bd0b4eb2976eeab9ac0 Mon Sep 17 00:00:00 2001 From: Molgrum Date: Tue, 29 Apr 2008 22:11:17 +0000 Subject: [PATCH] Scan for alternative libasound filenames. http://www.quakeworld.nu/forum/viewtopic.php?pid=37690#p37690 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2947 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_alsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/snd_alsa.c b/engine/client/snd_alsa.c index 726b67e79..c5e01e5c8 100755 --- a/engine/client/snd_alsa.c +++ b/engine/client/snd_alsa.c @@ -134,6 +134,8 @@ static qboolean Alsa_InitAlsa(void) return alsaworks; tried = true; + // Try alternative names of libasound, sometimes it is not linked correctly. + alsasharedobject = dlopen("libasound.so.2", RTLD_LAZY|RTLD_LOCAL); alsasharedobject = dlopen("libasound.so", RTLD_LAZY|RTLD_LOCAL); if (!alsasharedobject) {