Class EXTThreadLocalContext


  • public class EXTThreadLocalContext
    extends java.lang.Object
    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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long alcGetThreadContext()
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • alcSetThreadContext

        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 - 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 return NULL if no thread-specific context is set.