diff options
Diffstat (limited to 'src/java/com/jogamp/openal/sound3d/Device.java')
-rw-r--r-- | src/java/com/jogamp/openal/sound3d/Device.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/jogamp/openal/sound3d/Device.java b/src/java/com/jogamp/openal/sound3d/Device.java index 052d6a2..353ad5a 100644 --- a/src/java/com/jogamp/openal/sound3d/Device.java +++ b/src/java/com/jogamp/openal/sound3d/Device.java @@ -35,6 +35,7 @@ package com.jogamp.openal.sound3d; import com.jogamp.openal.*; +import com.jogamp.openal.util.ALHelpers; /** @@ -72,6 +73,17 @@ public final class Device { public boolean isValid() { return null != alDev; } /** + * Returns whether `ALC_EXT_debug` is available for this device. + * <p> + * This context may or may not be current. + * </p> + * @see Context#isDebugAvail() + */ + public boolean isDebugAvail() { + return AudioSystem3D.alc.alcIsExtensionPresent(alDev, ALHelpers.ALC_EXT_debug); + } + + /** * Opens the device if not yet opened * @return true if already open or newly opened * @see #isValid() |