[Openal] Static libray of OpenAl Without DLL (For visual studioproject)

Chris Robinson chris.kcat at gmail.com
Thu Jun 19 22:09:34 PDT 2008


On Thursday 19 June 2008 06:55:36 am wassim_belhadj wrote:
> Thank you very much for your help
> You are really very nice ...
> In fact I changed the files "al.h" and "OpenAL32.c" as you told me.
> I do not use the library ALUT therefore I have not changed the file
> "alut.h".
> Then, I build  to have a static libray  and I added it  to my
> project(visual studioproject).
> All works well but when i try to open the device i have an error.
> When I recover the devices name  via function "alcGetString" it was bizarre
> (Wave File Writer)
> This not been the name of my sound card so  "alcOpenDevice"  function
> generates an error when it try to open device.

This sounds like you're using OpenAL Soft, and it didn't build with 
DirectSound support. You'll need to check the full output when you ran cmake 
and see what was failing/why it isn't detecting DSound. Note that if you use 
OpenAL Soft like this, it'll forever prevent people from using their own 
OpenAL version (either the DSound wrapper from Creative, or a hardware 
driver, or a home-grown version someone may have). And static linking will 
also prevent people from easilly upgrading OpenAL Soft.

As well, to abide by the LGPL license with static linking, you must provide 
the object files for the project (if not the source), so users can replace 
OpenAL Soft code as they see fit.


More information about the Openal mailing list