]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/openal_test1.cxx
Updates to the test utilies.
[simgear.git] / simgear / sound / openal_test1.cxx
index 5342ddf199623e1eb00b61b718d92fd81d6de03f..dd2a77f01620e813c6ba6b1026bf4518719557e9 100644 (file)
@@ -14,6 +14,10 @@ static unsigned int sleep(unsigned int secs) { return 0; }
 # include <OpenAL/al.h>
 # include <OpenAL/alc.h>
 # include <OpenAL/alut.h>
+#elif defined(OPENALSDK)
+# include <al.h>
+# include <alc.h>
+# include <AL/alut.h> 
 #else
 # include <AL/al.h>
 # include <AL/alc.h>
@@ -46,6 +50,8 @@ int main( int argc, char *argv[] ) {
     ALCdevice *dev;
     ALCcontext *context;
 
+    sglog().setLogLevels( SG_ALL, SG_ALERT );
+
     // initialize OpenAL
     if ( (dev = alcOpenDevice( NULL )) != NULL
             && ( context = alcCreateContext( dev, NULL )) != NULL ) {