Package org.lwjgl.openal
Class EXTThreadLocalContext
java.lang.Object
org.lwjgl.openal.EXTThreadLocalContext
Native bindings to the EXT_thread_local_context extension.
This extension introduces the concept of a current thread-local context, with each thread able to have its own current context. The current context is what the al- functions work on, effectively allowing multiple threads to independently drive separate OpenAL playback contexts.
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
Retrieves a handle to the thread-specific context of the calling thread.static boolean
alcSetThreadContext
(long context) Makes a context current with respect to OpenAL operation on the current thread.
-
Method Details
-
alcSetThreadContext
public static boolean alcSetThreadContext(long context) Makes a context current with respect to OpenAL operation on the current thread. The context parameter can beNULL
or a valid context pointer. UsingNULL
results in no thread-specific context being current in the calling thread, which is useful when shutting OpenAL down.- Parameters:
context
- the context to make current
-
alcGetThreadContext
public static long alcGetThreadContext()Retrieves a handle to the thread-specific context of the calling thread. This function will returnNULL
if no thread-specific context is set.
-