ALC_ALL_ATTRIBUTES, ALC_ALL_DEVICES_SPECIFIER, ALC_ATTRIBUTES_SIZE, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER, ALC_CAPTURE_DEVICE_SPECIFIER, ALC_CAPTURE_SAMPLES, ALC_CONNECTED, ALC_DEFAULT_ALL_DEVICES_SPECIFIER, ALC_DEFAULT_DEVICE_SPECIFIER, ALC_DEVICE_SPECIFIER, ALC_EXTENSIONS, ALC_INVALID_CONTEXT, ALC_INVALID_DEVICE, ALC_INVALID_ENUM, ALC_INVALID_VALUE, ALC_MAJOR_VERSION, ALC_MINOR_VERSION, ALC_NO_ERROR, ALC_OUT_OF_MEMORY| Constructor and Description |
|---|
LwjglALC() |
| Modifier and Type | Method and Description |
|---|---|
void |
alcDevicePauseSOFT()
Pauses a playback device.
|
void |
alcDeviceResumeSOFT()
Resumes playback of a paused device.
|
void |
alcGetInteger(int param,
java.nio.IntBuffer buffer,
int size)
Obtains integer value(s) from ALC.
|
java.lang.String |
alcGetString(int parameter)
Obtains string value(s) from ALC.
|
boolean |
alcIsExtensionPresent(java.lang.String extension)
Verifies that a given extension is available for the current context and the device it is associated with.
|
void |
createALC()
Creates an AL context.
|
void |
destroyALC()
Destroys an AL context.
|
boolean |
isCreated()
Checks of creating an AL context.
|
public void createALC()
ALCpublic void destroyALC()
ALCdestroyALC in interface ALCpublic boolean isCreated()
ALCpublic java.lang.String alcGetString(int parameter)
ALCalcGetString in interface ALCparameter - the information to query. One of:
DEFAULT_DEVICE_SPECIFIER
DEVICE_SPECIFIER
EXTENSIONS
CAPTURE_DEFAULT_DEVICE_SPECIFIER
CAPTURE_DEVICE_SPECIFIERpublic boolean alcIsExtensionPresent(java.lang.String extension)
ALCInvalid and unsupported string tokens return ALC_FALSE. A NULL deviceHandle is acceptable. extName is not case sensitive – the implementation
will convert the name to all upper-case internally (and will express extension names in upper-case).
alcIsExtensionPresent in interface ALCextension - the extension name.public void alcGetInteger(int param,
java.nio.IntBuffer buffer,
int size)
ALCalcGetInteger in interface ALCparam - the information to query. One of:
MAJOR_VERSION
MINOR_VERSION
ATTRIBUTES_SIZE
ALL_ATTRIBUTES
CAPTURE_SAMPLESbuffer - the destination buffer.size - the buffer size.public void alcDevicePauseSOFT()
ALCWhen paused, no contexts associated with the device will be processed or updated. Playing sources will not produce sound, have their offsets incremented, or process any more buffers, until the device is resumed. Pausing a device that is already paused is a legal no-op.
alcDevicePauseSOFT in interface ALCpublic void alcDeviceResumeSOFT()
ALCThis will restart processing on the device -- sources will resume playing sound as normal. Resuming playback on a device that is not paused is a legal no-op.
These functions are not reference counted. alcDeviceResumeSOFT only needs to be called once to resume playback, regardless of how many times
DevicePauseSOFT was called.
alcDeviceResumeSOFT in interface ALC