[Openal-devel] OpenAL-Soft - Enumerate all devices returns none
- how to fix?
MarvinG
hot_and_high at hotmail.com
Thu Apr 17 04:12:57 PDT 2008
Hi Chris,
> Do the three problem machines have dsound.dll and winmm.dll? LoadLibrary
> could
> fail if a hard DLL dependancey of openal soft's openal32.dll isn't found
> (such as dsound.dll or winmm.dll).
Yes, they all have those DLLs present in the Windows\System32 folder.
I have just tried on a 4th machine, and old laptop running WinME. It has
DirectX installed and the OpenAL runtimes, and again the original OpenAL
runtime works fine, but adding the OpenAL-soft DLL to the working program
directory and running the app causes it to fail on the LoadLibrary call. I
have analysed the hard dependencies of the compiled openAL-soft DLL and it
requires "KERNEL32.DLL", "USER32.DLL", "WINMM.DLL" and "DSOUND.DLL". I have
performed calls to LoadLibrary on each of these before calling LoadLibrary
on the OpenAL32.dll, and all 4 hard dependencies return valid handles. As
soon as LoadLibrary is called on the soft DLL though, it returns a NULL
handle, and (strangely) GetLastError reports 0.
The 82KB size of the soft DLL I compiled was with VC+ 2008 set to "Use
standard Windows Libraries". With it set to "Use MFC in a Static Library"
it produced a DLL of 190KB. This also suffers from the same problem.
The 82KB DLL also required MSVCR90.DLL (VC runtimes, I believe). I
installed those and still no joy. The 190KB DLL does not require this
MSVCR90.DLL, and still fails on LoadLibrary.
Is there a Windows version of the DLL you (or someone) could kindly send me
to try out in place of my compile attempts?
There must be something common to my 2 development machines that is not
present on (now) 4 non-development computers, 3 of which are fairly new
WinXP and high-spec machines with pretty new sound cards and drivers.
Your DLL works great on the 2 dev machines though! Unfortunately that's no
good for the deployment of my application.
Thanks for your help.
Mervin
--
View this message in context: http://www.nabble.com/OpenAL-Soft---Enumerate-all-devices-returns-none---how-to-fix--tp16722783p16743326.html
Sent from the OpenAL - Dev mailing list archive at Nabble.com.
More information about the Openal-devel
mailing list