This extension provides a mechanism for applications to provide sample data to the audio device in real-time.
Standard OpenAL sources can read samples from a pre-loaded static buffer, or from a queue of prepared buffers that can be fed in over time. In both cases, an application needs to prepare all or some of the audio samples ahead of time to ensure proper continuous playback. A callback mechanism allows applications to generate audio as needed, without having to prepare samples ahead of time, and to implement their own streaming interface instead of having to fill, queue, and manage multiple OpenAL buffers per stream.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | AL_BUFFER_CALLBACK_FUNCTION_SOFT
Accepted as the |
| public static final int | AL_BUFFER_CALLBACK_USER_PARAM_SOFT
Accepted as the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | alBufferCallbackSOFT(int buffer, int
the sample format that will be expected from the callback format, int the base sample rate the samples will play at freq, SOFTCallbackBufferTypeI callback, long stored with the userptr)callback pointer. Any data it references is not copiedInstead of storing sample data, a buffer may be given a callback function which will be invoked when the source it's attached to needs more samples to mix. |
| public static void | alGetBuffer3PtrSOFT(int buffer, int param, PointerBuffer ptr0, PointerBuffer ptr1, PointerBuffer ptr2)
|
| public static void | |
| public static long | |
| public static void | |
| public static void | nalBufferCallbackSOFT(int buffer, int format, int freq, long callback, long userptr)
Unsafe version of: |
| public static void | |
| public static void | |
| public static void |
| AL_BUFFER_CALLBACK_FUNCTION_SOFT | back to summary |
|---|---|
| public static final int AL_BUFFER_CALLBACK_FUNCTION_SOFT Accepted as the | |
| AL_BUFFER_CALLBACK_USER_PARAM_SOFT | back to summary |
|---|---|
| public static final int AL_BUFFER_CALLBACK_USER_PARAM_SOFT Accepted as the | |
| SOFTCallbackBuffer | back to summary |
|---|---|
| protected SOFTCallbackBuffer() | |
| alBufferCallbackSOFT | back to summary |
|---|---|
| public static void alBufferCallbackSOFT(int buffer, int format, int freq, SOFTCallbackBufferTypeI callback, long userptr) Instead of storing sample data, a buffer may be given a callback function which will be invoked when the source it's attached to needs more samples to
mix. To specify a callback for a buffer, use After a successful call, any sample data that was stored in the buffer is removed. A buffer with a callback cannot be queued onto a streaming source, and it can only be set on one static source at a time. Attempting to queue such a
buffer on a source, or attempting to set it on a source while it's already on one, will generate an A subsequent successful call to
| |
| alGetBuffer3PtrSOFT | back to summary |
|---|---|
public static void alGetBuffer3PtrSOFT(int buffer, int param, PointerBuffer ptr0, PointerBuffer ptr1, PointerBuffer ptr2)
| |
| alGetBufferPtrSOFT | back to summary |
|---|---|
public static void alGetBufferPtrSOFT(int buffer, int param, PointerBuffer ptr)
| |
| alGetBufferPtrSOFT | back to summary |
|---|---|
public static long alGetBufferPtrSOFT(int buffer, int param)
| |
| alGetBufferPtrvSOFT | back to summary |
|---|---|
public static void alGetBufferPtrvSOFT(int buffer, int param, PointerBuffer ptr)
| |
| nalBufferCallbackSOFT | back to summary |
|---|---|
| public static void nalBufferCallbackSOFT(int buffer, int format, int freq, long callback, long userptr) Unsafe version of: | |
| nalGetBuffer3PtrSOFT | back to summary |
|---|---|
| public static void nalGetBuffer3PtrSOFT(int buffer, int param, long ptr0, long ptr1, long ptr2) | |
| nalGetBufferPtrSOFT | back to summary |
|---|---|
| public static void nalGetBufferPtrSOFT(int buffer, int param, long ptr) | |
| nalGetBufferPtrvSOFT | back to summary |
|---|---|
| public static void nalGetBufferPtrvSOFT(int buffer, int param, long ptr) | |