Interface ALC
- All Known Implementing Classes:
AndroidALC
,IosALC
,LwjglALC
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Capture extensionstatic final int
static final int
static final int
ALC_ENUMERATE_ALL_EXT enumsstatic final int
The Specifier string for default devicestatic final int
static final int
static final int
invalid context IDstatic final int
No devicestatic final int
bad enumstatic final int
bad valuestatic final int
static final int
static final int
No errorstatic final int
Out of memory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Pauses a playback device.void
Resumes playback of a paused device.void
alcGetInteger
(int param, IntBuffer buffer, int size) Obtains integer value(s) from ALC.alcGetString
(int parameter) Obtains string value(s) from ALC.boolean
alcIsExtensionPresent
(String extension) Verifies that a given extension is available for the current context and the device it is associated with.void
Creates an AL context.void
Destroys an AL context.boolean
Checks of creating an AL context.
-
Field Details
-
ALC_NO_ERROR
static final int ALC_NO_ERRORNo error- See Also:
-
ALC_INVALID_DEVICE
static final int ALC_INVALID_DEVICENo device- See Also:
-
ALC_INVALID_CONTEXT
static final int ALC_INVALID_CONTEXTinvalid context ID- See Also:
-
ALC_INVALID_ENUM
static final int ALC_INVALID_ENUMbad enum- See Also:
-
ALC_INVALID_VALUE
static final int ALC_INVALID_VALUEbad value- See Also:
-
ALC_OUT_OF_MEMORY
static final int ALC_OUT_OF_MEMORYOut of memory.- See Also:
-
ALC_DEFAULT_DEVICE_SPECIFIER
static final int ALC_DEFAULT_DEVICE_SPECIFIERThe Specifier string for default device- See Also:
-
ALC_DEVICE_SPECIFIER
static final int ALC_DEVICE_SPECIFIER- See Also:
-
ALC_EXTENSIONS
static final int ALC_EXTENSIONS- See Also:
-
ALC_MAJOR_VERSION
static final int ALC_MAJOR_VERSION- See Also:
-
ALC_MINOR_VERSION
static final int ALC_MINOR_VERSION- See Also:
-
ALC_ATTRIBUTES_SIZE
static final int ALC_ATTRIBUTES_SIZE- See Also:
-
ALC_ALL_ATTRIBUTES
static final int ALC_ALL_ATTRIBUTES- See Also:
-
ALC_CAPTURE_DEVICE_SPECIFIER
static final int ALC_CAPTURE_DEVICE_SPECIFIERCapture extension- See Also:
-
ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER
static final int ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER- See Also:
-
ALC_CAPTURE_SAMPLES
static final int ALC_CAPTURE_SAMPLES- See Also:
-
ALC_DEFAULT_ALL_DEVICES_SPECIFIER
static final int ALC_DEFAULT_ALL_DEVICES_SPECIFIERALC_ENUMERATE_ALL_EXT enums- See Also:
-
ALC_ALL_DEVICES_SPECIFIER
static final int ALC_ALL_DEVICES_SPECIFIER- See Also:
-
ALC_CONNECTED
static final int ALC_CONNECTED- See Also:
-
-
Method Details
-
createALC
void createALC()Creates an AL context. -
destroyALC
void destroyALC()Destroys an AL context. -
isCreated
boolean isCreated()Checks of creating an AL context.- Returns:
- true if an AL context is created.
-
alcGetString
Obtains string value(s) from ALC.- Parameters:
parameter
- the information to query. One of:DEFAULT_DEVICE_SPECIFIER
DEVICE_SPECIFIER
EXTENSIONS
CAPTURE_DEFAULT_DEVICE_SPECIFIER
CAPTURE_DEVICE_SPECIFIER
- Returns:
- the parameter value
-
alcIsExtensionPresent
Verifies that a given extension is available for the current context and the device it is associated with.Invalid 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).- Parameters:
extension
- the extension name.- Returns:
- true if the extension is available, otherwise false
-
alcGetInteger
Obtains integer value(s) from ALC.- Parameters:
param
- the information to query. One of:MAJOR_VERSION
MINOR_VERSION
ATTRIBUTES_SIZE
ALL_ATTRIBUTES
CAPTURE_SAMPLES
buffer
- the destination buffer.size
- the buffer size.
-
alcDevicePauseSOFT
void alcDevicePauseSOFT()Pauses a playback device.When 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.
-
alcDeviceResumeSOFT
void alcDeviceResumeSOFT()Resumes playback of a paused device.This 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.
-