Top Description Constructors Methods
org.lwjgl.openal

public Class EXTThreadLocalContext

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static long
alcGetThreadContext()

Retrieves a handle to the thread-specific context of the calling thread.

public static boolean
alcSetThreadContext(long
the context to make current
context
)

Makes a context current with respect to OpenAL operation on the current thread.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EXTThreadLocalContextback to summary
protected EXTThreadLocalContext()

Method Detail

alcGetThreadContextback to summary
public static long alcGetThreadContext()

Retrieves a handle to the thread-specific context of the calling thread. This function will return NULL if no thread-specific context is set.

Annotations
@NativeType:ALCcontext *
alcSetThreadContextback to summary
public static boolean alcSetThreadContext(long context)

Makes a context current with respect to OpenAL operation on the current thread. The context parameter can be NULL or a valid context pointer. Using NULL results in no thread-specific context being current in the calling thread, which is useful when shutting OpenAL down.

Parameters
context:long

the context to make current

Annotations
@NativeType:ALCboolean