[Openal] OpenAL Soft's alcOpenDevice returns null

Chris Robinson chris.kcat at gmail.com
Sun Mar 30 12:40:20 PDT 2008


On Sunday 30 March 2008 11:55:59 am Stephen A wrote:
> I still haven't been able to find a solution to this problem. I have tried
> the following combinations with no success:
>
> WinXP (32bit): openal-soft 1.3.253 built with Visual Studio 2008
> Vista (64bit):   openal-soft 1.2.218 built with Visual Studio 2005 and 2008
>
> Directsound is enabled in all builds (at least, that's what CMake is
> reporting). However, only the "Wave File Writer" device is enumerated, and
> alcOpenDevice always returns NULL.
>
> Any ideas? Anything I can do to help debug the issue?

Hi Stephen.

If you're sure that CMake is reporting that the DirectSound backend is enabled 
(as opposed to WinMM, which is something different), and the correct DLL is 
being used, then the only thing I can think of causing it to fail to be 
enumerated, and not open, is that the system it's running on doesn't have any 
DSound-capable output devices. Enumeration simply creates a list out of the 
devices returned by DirectSoundEnumerate, so if nothing's showing up, the 
system isn't giving anything.

If you're sure the system has DSound capabilities and CMake reported the 
DirectSound backend was enabled, then I'd double-check that the correct 
OpenAL-Soft DLL is being used.


More information about the Openal mailing list