aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp
diff options
context:
space:
mode:
authorMichael Zucchi <[email protected]>2013-01-25 15:37:49 +0100
committerXerxes Rånby <[email protected]>2013-01-25 15:37:49 +0100
commit3cf2b66e13104b372611b3a9dbb722110370a9c7 (patch)
tree070bbe4e58f4661a601259e1ddfe6e96eefb3be4 /src/java/com/jogamp
parent6b86449596dabf87201d7321799a39a7b78ab692 (diff)
Bug 567 (part 1): add support for openal extensions
Imported JOAL specific parts from the patch made by Michael Zucchi. Author: Michael Zucchi <[email protected]> Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/java/com/jogamp')
-rw-r--r--src/java/com/jogamp/openal/ALFactory.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/ALFactory.java b/src/java/com/jogamp/openal/ALFactory.java
index 29174ba..f442f00 100644
--- a/src/java/com/jogamp/openal/ALFactory.java
+++ b/src/java/com/jogamp/openal/ALFactory.java
@@ -36,6 +36,7 @@ package com.jogamp.openal;
import com.jogamp.common.os.Platform;
import com.jogamp.openal.AL;
import com.jogamp.openal.ALC;
+import com.jogamp.openal.ALExt;
import jogamp.openal.*;
/**
@@ -50,6 +51,7 @@ public class ALFactory {
private static boolean initialized = false;
private static AL al;
private static ALC alc;
+ private static ALExt alext;
private ALFactory() {}
@@ -97,4 +99,18 @@ public class ALFactory {
}
return alc;
}
+
+ /**
+ * Get the default ALExt object. This object is used to access most of the
+ * OpenAL extension functionality.
+ *
+ * @return the ALExt object
+ */
+ public static ALExt getALExt() throws ALException{
+ initialize();
+ if (alext == null) {
+ alext = new ALExtImpl();
+ }
+ return alext;
+ }
}