aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/openal/sound3d/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/jogamp/openal/sound3d/Context.java')
-rw-r--r--src/java/com/jogamp/openal/sound3d/Context.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/sound3d/Context.java b/src/java/com/jogamp/openal/sound3d/Context.java
index 7e20263..48cbbe6 100644
--- a/src/java/com/jogamp/openal/sound3d/Context.java
+++ b/src/java/com/jogamp/openal/sound3d/Context.java
@@ -101,6 +101,14 @@ public final class Context {
}
/**
+ * Returns whether `AL_EXT_debug` is available for the current context.
+ * @see Device#isDebugAvail()
+ */
+ public boolean isDebugAvail() {
+ return AudioSystem3D.al.alIsExtensionPresent(ALHelpers.AL_EXT_debug);
+ }
+
+ /**
* Creates the internal {@link ALCcontext} instance if {@link #getALContext()} is null
* @param attributes lost of {@link ALCcontext} attributes for context creation
* @return true if the internal context has been successfully created, otherwise false