Class SOFTSystemEvents

java.lang.Object
org.lwjgl.openal.SOFTSystemEvents

public class SOFTSystemEvents extends Object
Native bindings to the SOFT_system_events extension.

This extension allows applications to be notified of system events related to audio devices. In particular, when a new device becomes available, an existing device becomes unavailable, and when the default device changes. Standard OpenAL has no mechanism to detect these events aside from maybe querying the device names and comparing to a previous query, but this requires the application to actively query and compare two lists, and OpenAL makes no guarantee that the device list will change at run-time, and the same goes for the default device name. This extension allows an application to register a callback to be automatically alerted to such changes, providing the appropriate guarantees.

  • Field Details

    • ALC_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT

      public static final int ALC_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT
      Accepted as the eventType parameter of EventIsSupportedSOFT, as an element of the events parameter of EventControlSOFT, and provided as the eventType parameter of ALCEVENTPROCTYPESOFT callback functions.
      See Also:
    • ALC_EVENT_TYPE_DEVICE_ADDED_SOFT

      public static final int ALC_EVENT_TYPE_DEVICE_ADDED_SOFT
      Accepted as the eventType parameter of EventIsSupportedSOFT, as an element of the events parameter of EventControlSOFT, and provided as the eventType parameter of ALCEVENTPROCTYPESOFT callback functions.
      See Also:
    • ALC_EVENT_TYPE_DEVICE_REMOVED_SOFT

      public static final int ALC_EVENT_TYPE_DEVICE_REMOVED_SOFT
      Accepted as the eventType parameter of EventIsSupportedSOFT, as an element of the events parameter of EventControlSOFT, and provided as the eventType parameter of ALCEVENTPROCTYPESOFT callback functions.
      See Also:
    • ALC_PLAYBACK_DEVICE_SOFT

      public static final int ALC_PLAYBACK_DEVICE_SOFT
      Accepted as the deviceType parameter of EventIsSupportedSOFT, and provided as the deviceType parameter of ALCEVENTPROCTYPESOFT callback functions.
      See Also:
    • ALC_CAPTURE_DEVICE_SOFT

      public static final int ALC_CAPTURE_DEVICE_SOFT
      Accepted as the deviceType parameter of EventIsSupportedSOFT, and provided as the deviceType parameter of ALCEVENTPROCTYPESOFT callback functions.
      See Also:
    • ALC_EVENT_SUPPORTED_SOFT

      public static final int ALC_EVENT_SUPPORTED_SOFT
      Returned from EventIsSupportedSOFT.
      See Also:
    • ALC_EVENT_NOT_SUPPORTED_SOFT

      public static final int ALC_EVENT_NOT_SUPPORTED_SOFT
      Returned from EventIsSupportedSOFT.
      See Also:
  • Method Details

    • alcEventIsSupportedSOFT

      public static int alcEventIsSupportedSOFT(int eventType, int deviceType)
    • nalcEventControlSOFT

      public static boolean nalcEventControlSOFT(int count, long events, boolean enable)
    • alcEventControlSOFT

      public static boolean alcEventControlSOFT(@Nullable IntBuffer events, boolean enable)
    • nalcEventCallbackSOFT

      public static void nalcEventCallbackSOFT(long callback, long userParam)
    • alcEventCallbackSOFT

      public static void alcEventCallbackSOFT(@Nullable SOFTSystemEventProcI callback, long userParam)
    • alcEventControlSOFT

      public static boolean alcEventControlSOFT(int @Nullable [] events, boolean enable)
      Array version of: EventControlSOFT