Package org.lwjgl.openal
Class SOFTSystemEvents
java.lang.Object
org.lwjgl.openal.SOFTSystemEvents
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccepted as thedeviceTypeparameter ofEventIsSupportedSOFT, and provided as thedeviceTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.static final intReturned fromEventIsSupportedSOFT.static final intReturned fromEventIsSupportedSOFT.static final intAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.static final intAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.static final intAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.static final intAccepted as thedeviceTypeparameter ofEventIsSupportedSOFT, and provided as thedeviceTypeparameter ofALCEVENTPROCTYPESOFTcallback functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidalcEventCallbackSOFT(@Nullable SOFTSystemEventProcI callback, long userParam) static booleanalcEventControlSOFT(int @Nullable [] events, boolean enable) Array version of:EventControlSOFTstatic booleanalcEventControlSOFT(@Nullable IntBuffer events, boolean enable) static intalcEventIsSupportedSOFT(int eventType, int deviceType) static voidnalcEventCallbackSOFT(long callback, long userParam) static booleannalcEventControlSOFT(int count, long events, boolean enable)
-
Field Details
-
ALC_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFT
public static final int ALC_EVENT_TYPE_DEFAULT_DEVICE_CHANGED_SOFTAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.- See Also:
-
ALC_EVENT_TYPE_DEVICE_ADDED_SOFT
public static final int ALC_EVENT_TYPE_DEVICE_ADDED_SOFTAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.- See Also:
-
ALC_EVENT_TYPE_DEVICE_REMOVED_SOFT
public static final int ALC_EVENT_TYPE_DEVICE_REMOVED_SOFTAccepted as theeventTypeparameter ofEventIsSupportedSOFT, as an element of theeventsparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.- See Also:
-
ALC_PLAYBACK_DEVICE_SOFT
public static final int ALC_PLAYBACK_DEVICE_SOFTAccepted as thedeviceTypeparameter ofEventIsSupportedSOFT, and provided as thedeviceTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.- See Also:
-
ALC_CAPTURE_DEVICE_SOFT
public static final int ALC_CAPTURE_DEVICE_SOFTAccepted as thedeviceTypeparameter ofEventIsSupportedSOFT, and provided as thedeviceTypeparameter ofALCEVENTPROCTYPESOFTcallback functions.- See Also:
-
ALC_EVENT_SUPPORTED_SOFT
public static final int ALC_EVENT_SUPPORTED_SOFTReturned fromEventIsSupportedSOFT.- See Also:
-
ALC_EVENT_NOT_SUPPORTED_SOFT
public static final int ALC_EVENT_NOT_SUPPORTED_SOFTReturned fromEventIsSupportedSOFT.- 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
-
nalcEventCallbackSOFT
public static void nalcEventCallbackSOFT(long callback, long userParam) -
alcEventCallbackSOFT
-
alcEventControlSOFT
public static boolean alcEventControlSOFT(int @Nullable [] events, boolean enable) Array version of:EventControlSOFT
-