Re: Device enumeration and ALC_ENUMERATE_ALL_EXT

Chris Robinson <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
On Sunday, March 13, 2011 4:48:26 PM Thilo Schulz wrote:
> Now if I compile for official OpenAL SDK I will get a missing include file
> error if I include alext.h, and an undefined symbol error if I do not
> explicitly include alext.h when compiling against the openalsoft version.
> Damned if I do, damned if I don't.
> You've left me a bit with a conundrum there.

You could copy openal soft's headers into your project, so that you'll always 
have them. Then you don't need to worry about what headers someone compiling 
may have installed, since they'll be the same.

Or optionally, just copy openal soft's alext.h. You may need to undef the two 
extension definitions that Creative's alc.h has, though:

#include <alc.h>
#include <al.h>

/* Creative's alc.h defines these, and conflicts with alext.h */
#undef ALC_DEFAULT_ALL_DEVICES_SPECIFIER
#undef ALC_ALL_DEVICES_SPECIFIER

#include "alext.h"

The undefs shouldn't be a problem if they're not defined, so this would still 
work with openal soft's alc.h/al.h.
_______________________________________________
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.