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 longRetrieves a handle to the thread-specific context of the calling thread.static booleanalcSetThreadContext(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 beNULLor a valid context pointer. UsingNULLresults 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 returnNULLif no thread-specific context is set.
-