ALCCapabilities classes. An ALCCapabilities instance contains flags for functionality that is available for an
OpenAL device. Internally, it also contains function pointers that are only valid for that specific OpenAL device.The OpenAL library is loaded automatically when this class is initialized. Set the Configuration#OPENAL_EXPLICIT_INIT option to override this
behavior. Manual loading/unloading can be achieved with the create and destroy functions. The name of the library loaded can be overridden
with the Configuration#OPENAL_LIBRARY_NAME option.
Instances of ALCCapabilities can be created with the createCapabilities method. Calling this method is expensive, so
ALCCapabilities instances should be cached in user code.
AL
| Modifier and Type | Class and Description |
|---|---|
| private static interface | ALC.
Function pointer provider. |
| private static class | ALC.
Write-once |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ThreadLocal | |
| private static FunctionProviderLocal | |
| private static ALC. | |
| private static ALCCapabilities |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T> T | |
| private static ALCCapabilities | |
| public static void | |
| public static void | |
| public static void | create(FunctionProviderLocal
the provider of ALC function addresses functionProvider)Initializes ALC with the specified |
| public static ALCCapabilities | Returns: theALCCapabilities instancethe device)ALCdevice for which to create the capabilities instanceCreates a new |
| public static ALCCapabilities | Returns: theALCCapabilities instancethe device, IntFunction<PointerBuffer> ALCdevice for which to create the capabilities instancea function that allocates a bufferFactory)PointerBuffer given a size. The buffer must be filled with zeroes. If null, LWJGL will
allocate a GC-managed buffer internally.Creates a new |
| public static void | |
| public static ALCCapabilities | |
| public static FunctionProviderLocal | |
| pack-priv static ALCCapabilities | |
| public static void | setCapabilities(ALCCapabilities
the caps)ALCCapabilities to make current, or nullSets the specified |
| capabilitiesTLS | back to summary |
|---|---|
| private static final ThreadLocal<ALCCapabilities> capabilitiesTLS | |
| functionProvider | back to summary |
|---|---|
| private static FunctionProviderLocal functionProvider
| |
| icd | back to summary |
|---|---|
| private static ALC. | |
| router | back to summary |
|---|---|
| private static ALCCapabilities router
| |
| ALC | back to summary |
|---|---|
| private ALC() | |
| check | back to summary |
|---|---|
| pack-priv static <T> T check(T t) | |
| checkCapabilities | back to summary |
|---|---|
| private static ALCCapabilities checkCapabilities(ALCCapabilities caps) | |
| create | back to summary |
|---|---|
| public static void create() Loads the OpenAL native library, using the default library name. | |
| create | back to summary |
|---|---|
| public static void create(String libName) Loads the OpenAL native library, using the specified library name.
| |
| create | back to summary |
|---|---|
| public static void create(FunctionProviderLocal functionProvider) Initializes ALC with the specified
| |
| createCapabilities | back to summary |
|---|---|
| public static ALCCapabilities createCapabilities(long device) Creates a new This method calls
| |
| createCapabilities | back to summary |
|---|---|
| public static ALCCapabilities createCapabilities(long device, IntFunction<PointerBuffer> bufferFactory) Creates a new This method calls
| |
| destroy | back to summary |
|---|---|
| public static void destroy() Unloads the OpenAL native library. | |
| getCapabilities | back to summary |
|---|---|
| public static ALCCapabilities getCapabilities() Returns the
| |
| getFunctionProvider | back to summary |
|---|---|
| public static FunctionProviderLocal getFunctionProvider() Returns the | |
| getICD | back to summary |
|---|---|
| pack-priv static ALCCapabilities getICD() | |
| setCapabilities | back to summary |
|---|---|
| public static void setCapabilities(ALCCapabilities caps) Sets the specified Any ALC functions called in the current thread will use the specified
| |
| Modifier and Type | Method and Description |
|---|---|
| public ALCCapabilities | |
| public default void |
| get | back to summary |
|---|---|
public ALCCapabilities get()
| |
| set | back to summary |
|---|---|
| public default void set(ALCCapabilities caps) | |
ICD.
This is the default implementation that skips the thread/process lookup. When a new ALCCapabilities is set, we compare it to the write-once capabilities. If different function pointers are found, we fall back to the expensive lookup.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static ALCCapabilities |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ALCCapabilities | |
| public void |
| tempCaps | back to summary |
|---|---|
| private static ALCCapabilities tempCaps
| |
| ICDStatic | back to summary |
|---|---|
| private ICDStatic() | |
| get | back to summary |
|---|---|
| public ALCCapabilities get() Implements org.
| |
| set | back to summary |
|---|---|
| public void set(ALCCapabilities caps) Overrides default org.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ALCCapabilities |
| Access | Constructor and Description |
|---|---|
| private |
| caps | back to summary |
|---|---|
| pack-priv static final ALCCapabilities caps | |
| WriteOnce | back to summary |
|---|---|
| private WriteOnce() | |