[Openal] No sound in armyops with latest cvs
Julian Sikorski
lordzanon at poczta.onet.pl
Sun Dec 11 09:31:23 PST 2005
Sven Panne napisał(a):
> Am Sonntag, 11. Dezember 2005 10:32 schrieb Julian Sikorski:
>
>>Ryan C. Gordon napisał(a):
>>
>>>[...]
>>>If OpenAL is using the SDL backend, then it's probably using the SDL
>>>that ships with ArmyOps, which (I could be mistaken) has the audio
>>>subsystem stripped out.
>>>
>>>This is just a guess as to the problem, though.
>>>
>>>--ryan.
>>
>>According to my ~/.openalrc, it is supposed to use alsa subsystem. It
>>worked with the same config before, but that time alsa backend was the
>>only one that was compiled in.
>
>
> Well, we don't have to guess about the backend, we can use the wonderful
> "strace" tool to see what is going on. Go to the System folder of America's
> Army and run the following:
>
> strace -e trace=open -o /tmp/armyops.log ./armyops-bin
>
> Search for "openal.so" in the log file. What should happen from that point on
> is roughly as follows:
>
> * openal.so is searched in a few places, but finally found in the current
> working directory.
>
> * The libraries openal.so depends on are loaded. Which ones these are
> depend on how you've built it, but at least you should see libasound, since
> you are using ALSA.
>
> * ~/.openalrc is opened.
>
> * alsa.conf is read (located in /usr/share/alsa on my SuSE distro).
>
> * Some /dev/snd/foo files are opened.
>
> In general, "strace" and "ltrace" are *the* tools to debug SW for which you
> have no or only partial source code (well, and "truss" on Solaris, but I'm
> not sure if America's Army is ported to that platform already :-).
>
> Cheers,
> S.
> _______________________________________________
> openal mailing list
> openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
I have browsed through the file and noticed a few things. Game tries to
open openal.so.so, but it fails as no such file exists. No config files
you mentioned are read and no sound device is opened. In my opinios the
openal.so.so is the problem.
More information about the Openal
mailing list