Re: Building in Visual Studio 2010

"Sam Brown" <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <0815197BE1D94385A982382E1518DEDF@ninja>
> - If, for some reason, you don't want to use the LIB file, you can load 
> the DLL yourself

In case you need a reason, here's one:  ;)

I had to do exactly this to support both OpenAL and DS in the same app.  If 
you staticly link the lib in your app, the users have to have OpenAL 
installed, even if they never use the OpenAL side of things.

IIRC (I don't have the source with me) both the al_ and alc_ functions have 
both declarations (for static lib) and pointer-to-function types (for DLL) 
defined, but only the al_ declarations are guarded (with AL_NO_PROTOTYPES) 
so you can call your pointers the same name when using the DLL directly.  I 
had to add a ALC_NO_PROTOTYPES guard into alc.h as well so I could use the 
same names, which I need to do as I _don't_ use the DLL in the Linux 
version.

- SamB

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.