aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-23 02:05:11 +0200
committerSven Gothel <[email protected]>2023-05-23 02:05:11 +0200
commitafb386e13fd00fde1401d4551ee4790b1f6d5e09 (patch)
treec9b389c45fe0711a5a89bd37a0b763e217b46c21 /src/test
parent66e79a41f38f5694f953816f1a85a02cee71eb16 (diff)
Sound3D: Further OO wrapper to be used in ALAudioSink: Context locking, ALCcontext recreation, ..
Context - Recursive context locking (only 1st shall do native makeCurrent, only last shall do native release) - Access to the current Context instance (thread local storage) - Obey "One context can only be current on one thread, and one thread can only have one context current!" - ALCcontext recreation within lock, allowing to change native OpenAL specifics via attr list - ALCcontext creation (initial) w/ attr list Device - Retrieve name if default name null has been given - Expose device name - Allow to open() again Source - Allow lazy creation w/ invalid ID - Allow create() post instantiation (for a single source) - Throw ALException in all queued buffer methods as they are crucial in multithreading streaming. - Add queue buffer with OpenAL buffer-id int[] arrays variant to be used w/o Buffer Listener - Fix (get|set)Orientation() API doc: It's 'at' vector, then 'up' vector. General: - Have toString() - Added versatile AudioSystem3D.check*Error(..) Earlier Sound3D changes - 7f73d50c90d05cf7388f23977ca956a4933019ad - 64b40bd4359cad46ebf62751ea342d80205bd98b
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/openal/test/manual/Sound3DTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/com/jogamp/openal/test/manual/Sound3DTest.java b/src/test/com/jogamp/openal/test/manual/Sound3DTest.java
index 62a758a..39f96bd 100644
--- a/src/test/com/jogamp/openal/test/manual/Sound3DTest.java
+++ b/src/test/com/jogamp/openal/test/manual/Sound3DTest.java
@@ -64,8 +64,8 @@ public class Sound3DTest {
// create the initial context - this can be collapsed into the init.
final Device device = AudioSystem3D.openDevice(null);
- final Context context = new Context(device);
- if( !context.makeCurrent() ) {
+ final Context context = new Context(device, null);
+ if( !context.makeCurrent(false) ) {
System.err.println("Context.makeCurrent() failed");
return;
}