Top Description Fields Constructors Methods
org.lwjgl.openal

public Class SOFTEvents

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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

Modifier and TypeField and Description
public static final int
AL_EVENT_CALLBACK_FUNCTION_SOFT

Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.

public static final int
AL_EVENT_CALLBACK_USER_PARAM_SOFT

Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.

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.

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.

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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
alEventControlSOFT(IntBuffer types, boolean enable)

public static void
alEventControlSOFT(int[] types, boolean enable)

Array version of: EventControlSOFT

public static long
alGetPointerSOFT(int pname)

public static void
alGetPointervSOFT(int pname, PointerBuffer values)

public static void
nalEventCallbackSOFT(long callback, long userParam)

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

public static void
nalGetPointervSOFT(int pname, long values)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AL_EVENT_CALLBACK_FUNCTION_SOFTback to summary
public static final int AL_EVENT_CALLBACK_FUNCTION_SOFT

Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.

AL_EVENT_CALLBACK_USER_PARAM_SOFTback to summary
public static final int AL_EVENT_CALLBACK_USER_PARAM_SOFT

Accepted as the pname parameter of GetPointerSOFT and GetPointervSOFT.

AL_EVENT_TYPE_BUFFER_COMPLETED_SOFTback to summary
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.

AL_EVENT_TYPE_DISCONNECTED_SOFTback to summary
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.

AL_EVENT_TYPE_SOURCE_STATE_CHANGED_SOFTback to summary
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.

Constructor Detail

SOFTEventsback to summary
protected SOFTEvents()

Method Detail

alEventCallbackSOFTback to summary
public static void alEventCallbackSOFT(SOFTEventProcI callback, ByteBuffer userParam)
alEventControlSOFTback to summary
public static void alEventControlSOFT(IntBuffer types, boolean enable)
alEventControlSOFTback to summary
public static void alEventControlSOFT(int[] types, boolean enable)

Array version of: EventControlSOFT

alGetPointerSOFTback to summary
public static long alGetPointerSOFT(int pname)
Annotations
@NativeType:ALvoid *
alGetPointervSOFTback to summary
public static void alGetPointervSOFT(int pname, PointerBuffer values)
nalEventCallbackSOFTback to summary
public static void nalEventCallbackSOFT(long callback, long userParam)
nalEventControlSOFTback to summary
public static void nalEventControlSOFT(int count, long types, boolean enable)
nalGetPointervSOFTback to summary
public static void nalGetPointervSOFT(int pname, long values)