[ut2004] ALSA sound without OSS emulation
Ludwig Nussel
ludwig.nussel at gmx.de
Mon Mar 22 14:39:55 EST 2004
Alex Malinovich wrote:
> [...]
> Any ideas on what else I can look at? I've downloaded the openal sources
> from CVS and gone through them briefly (mainly focusing on the ALSA
> code) but as I really know very little about openal it's not very easy
Hmm, the code dlopens libasound.so. If your distribution separates
development files from runtime stuff you probably don't have that
symlink. OpenAL should use libasound.so.2 instead:
--- linux/src/arch/alsa/alsa.c 2 Mar 2004 14:10:53 -0000 1.9
+++ linux/src/arch/alsa/alsa.c 22 Mar 2004 19:27:26 -0000
@@ -81,7 +81,7 @@
#if OPENAL_DLOPEN_ALSA
#define OPENAL_LOAD_ALSA_SYMBOL(x) if ((p##x = dlsym(alsa_lib_handle, #x)) == NULL) { return 0; }
- alsa_lib_handle = dlopen("libasound.so", RTLD_LAZY | RTLD_GLOBAL);
+ alsa_lib_handle = dlopen("libasound.so.2", RTLD_LAZY | RTLD_GLOBAL);
if (alsa_lib_handle == NULL)
return 0;
#else
cu
Ludwig
--
(o_ Ludwig.Nussel at gmx.de
//\ PGP Key ID: FF8135CE
V_/_ ICQ: 52166811
More information about the ut2004
mailing list