Class SOFTEvents

java.lang.Object
org.lwjgl.openal.SOFTEvents

public class SOFTEvents extends Object
Native bindings to the SOFT_events extension.

This extension provides a method for applications to receive notifications about audio events via an asynchronous callback. This can help alleviate the need for applications to continually poll the AL to check if an event happened, and instead allow them to respond when events happen. Such events can include a source changing state or a device becoming disconnected.

  • Field Details

    • AL_EVENT_CALLBACK_FUNCTION_SOFT

      public static final int AL_EVENT_CALLBACK_FUNCTION_SOFT
      Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.
      See Also:
    • AL_EVENT_CALLBACK_USER_PARAM_SOFT

      public static final int AL_EVENT_CALLBACK_USER_PARAM_SOFT
      Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.
      See Also:
    • AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT

      public static final int AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT
      Accepted as an element in the types parameter of EventControlSOFT, and provided as the eventType parameter of ALEVENTPROCSOFT callback functions.
      See Also:
    • AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT

      public static final int AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT
      Accepted as an element in the types parameter of EventControlSOFT, and provided as the eventType parameter of ALEVENTPROCSOFT callback functions.
      See Also:
    • AL_EVENT_TYPE_DISCONNECTED_SOFT

      public static final int AL_EVENT_TYPE_DISCONNECTED_SOFT
      Accepted as an element in the types parameter of EventControlSOFT, and provided as the eventType parameter of ALEVENTPROCSOFT callback functions.
      See Also:
  • Method Details

    • nalEventControlSOFT

      public static void nalEventControlSOFT(int count, long types, boolean enable)
    • alEventControlSOFT

      public static void alEventControlSOFT(IntBuffer types, boolean enable)
    • nalEventCallbackSOFT

      public static void nalEventCallbackSOFT(long callback, long userParam)
    • alEventCallbackSOFT

      public static void alEventCallbackSOFT(SOFTEventProcI callback, @Nullable ByteBuffer userParam)
    • alGetPointerSOFT

      public static long alGetPointerSOFT(int pname)
    • nalGetPointervSOFT

      public static void nalGetPointervSOFT(int pname, long values)
    • alGetPointervSOFT

      public static void alGetPointervSOFT(int pname, org.lwjgl.PointerBuffer values)
    • alEventControlSOFT

      public static void alEventControlSOFT(int[] types, boolean enable)
      Array version of: EventControlSOFT