Package org.lwjgl.openal
Class SOFTEvents
java.lang.Object
org.lwjgl.openal.SOFTEvents
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions.static final intAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions.static final intAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidalEventCallbackDirectSOFT(long context, @Nullable SOFTEventProcI callback, long userParam) static voidalEventCallbackSOFT(@Nullable SOFTEventProcI callback, long userParam) static voidalEventControlDirectSOFT(long context, int[] types, boolean enable) Array version of:alEventControlDirectSOFT(long, java.nio.IntBuffer, boolean)static voidalEventControlDirectSOFT(long context, IntBuffer types, boolean enable) static voidalEventControlSOFT(int[] types, boolean enable) Array version of:EventControlSOFTstatic voidalEventControlSOFT(IntBuffer types, boolean enable) static longalGetPointerDirectSOFT(long context, int pname) static longalGetPointerSOFT(int pname) static voidalGetPointervDirectSOFT(long context, int pname, org.lwjgl.PointerBuffer values) static voidalGetPointervSOFT(int pname, org.lwjgl.PointerBuffer values) static voidnalEventCallbackDirectSOFT(long context, long callback, long userParam) static voidnalEventCallbackSOFT(long callback, long userParam) static voidnalEventControlDirectSOFT(long context, int count, long types, boolean enable) static voidnalEventControlSOFT(int count, long types, boolean enable) static voidnalGetPointervDirectSOFT(long context, int pname, long values) static voidnalGetPointervSOFT(int pname, long values)
-
Field Details
-
AL_EVENT_CALLBACK_FUNCTION_SOFT
public static final int AL_EVENT_CALLBACK_FUNCTION_SOFT- See Also:
-
AL_EVENT_CALLBACK_USER_PARAM_SOFT
public static final int AL_EVENT_CALLBACK_USER_PARAM_SOFT- See Also:
-
AL_EVENT_TYPE_BUFFER_COMPLETED_SOFT
public static final int AL_EVENT_TYPE_BUFFER_COMPLETED_SOFTAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions.- See Also:
-
AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFT
public static final int AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFTAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions.- See Also:
-
AL_EVENT_TYPE_DISCONNECTED_SOFT
public static final int AL_EVENT_TYPE_DISCONNECTED_SOFTAccepted as an element in thetypesparameter ofEventControlSOFT, and provided as theeventTypeparameter ofALEVENTPROCSOFTcallback functions.- See Also:
-
-
Method Details
-
nalEventControlSOFT
public static void nalEventControlSOFT(int count, long types, boolean enable) -
alEventControlSOFT
-
nalEventControlDirectSOFT
public static void nalEventControlDirectSOFT(long context, int count, long types, boolean enable) -
alEventControlDirectSOFT
-
nalEventCallbackSOFT
public static void nalEventCallbackSOFT(long callback, long userParam) -
alEventCallbackSOFT
-
nalEventCallbackDirectSOFT
public static void nalEventCallbackDirectSOFT(long context, long callback, long userParam) -
alEventCallbackDirectSOFT
public static void alEventCallbackDirectSOFT(long context, @Nullable SOFTEventProcI callback, long userParam) -
alGetPointerSOFT
public static long alGetPointerSOFT(int pname) -
alGetPointerDirectSOFT
public static long alGetPointerDirectSOFT(long context, int pname) -
nalGetPointervSOFT
public static void nalGetPointervSOFT(int pname, long values) -
alGetPointervSOFT
public static void alGetPointervSOFT(int pname, org.lwjgl.PointerBuffer values) -
nalGetPointervDirectSOFT
public static void nalGetPointervDirectSOFT(long context, int pname, long values) -
alGetPointervDirectSOFT
public static void alGetPointervDirectSOFT(long context, int pname, org.lwjgl.PointerBuffer values) -
alEventControlSOFT
public static void alEventControlSOFT(int[] types, boolean enable) Array version of:EventControlSOFT -
alEventControlDirectSOFT
public static void alEventControlDirectSOFT(long context, int[] types, boolean enable) Array version of:alEventControlDirectSOFT(long, java.nio.IntBuffer, boolean)
-