diff options
author | Sven Gothel <[email protected]> | 2010-12-13 12:28:06 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-12-13 12:28:06 +0100 |
commit | 70b648f9c8fa9c9cb302b9bbb06820a3cf23d71f (patch) | |
tree | ce9f711cce66a93d9562402107e5d11b247445d4 /src/test/com | |
parent | 57ef6b5648cc3f95a490477627c5a350251a09bf (diff) |
Window Support added ; Win64 libs & license files
- plays on linux/window now
- ant build files fixed -> Windows support
- windows OpenAL 32/64 bit: see make/lib/FILES.txt make/lib/oalinst-license.txt)
- linux libs: added .1 to suffix
- added Debug impl
- catch EAX init exception (ie unsatisfied link error)
- EAX proper blocked init
TODO:
- check on osx
- joal-demos
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/openal/test/manual/OpenALTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/com/jogamp/openal/test/manual/OpenALTest.java b/src/test/com/jogamp/openal/test/manual/OpenALTest.java index abd335c..864a9fd 100644 --- a/src/test/com/jogamp/openal/test/manual/OpenALTest.java +++ b/src/test/com/jogamp/openal/test/manual/OpenALTest.java @@ -72,7 +72,8 @@ public class OpenALTest { boolean eaxPresent = al.alIsExtensionPresent("EAX2.0"); - System.out.println("EAX present:" + eaxPresent); + EAX eax = ( eaxPresent ) ? EAXFactory.getEAX() : null; + System.err.println("EAX present:" + eaxPresent + ", EAX retrieved: "+ (null != eax)); int[] buffers = new int[1]; al.alGenBuffers(1, buffers, 0); @@ -86,14 +87,13 @@ public class OpenALTest { int[] loopArray = new int[1]; al.alGetSourcei(sources[0], AL.AL_LOOPING, loopArray, 0); - System.out.println("Looping 1: " + (loopArray[0] == AL.AL_TRUE)); + System.err.println("Looping 1: " + (loopArray[0] == AL.AL_TRUE)); int[] loopBuffer = new int[1]; al.alGetSourcei(sources[0], AL.AL_LOOPING, loopBuffer, 0); - System.out.println("Looping 2: " + (loopBuffer[0] == AL.AL_TRUE)); + System.err.println("Looping 2: " + (loopBuffer[0] == AL.AL_TRUE)); - if (eaxPresent) { - EAX eax = EAXFactory.getEAX(); + if (eaxPresent && null!=eax) { IntBuffer env = Buffers.newDirectIntBuffer(1); env.put(EAX.EAX_ENVIRONMENT_BATHROOM); eax.setListenerProperty(EAX.DSPROPERTY_EAXLISTENER_ENVIRONMENT, env); |