public class SOFTLoopback
extends java.lang.Object
This extension allows an application to read back OpenAL's rendered audio instead of having it output to an audio device on the system. Unextended OpenAL will output audio to an audio device, with no mechanism to allow an application to divert the audio somewhere else.
| Modifier and Type | Field and Description |
|---|---|
static int |
ALC_5POINT1_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_6POINT1_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_7POINT1_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_BYTE_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_FLOAT_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_FORMAT_CHANNELS_SOFT
Accepted as part of the
attrList parameter of CreateContext. |
static int |
ALC_FORMAT_TYPE_SOFT
Accepted as part of the
attrList parameter of CreateContext. |
static int |
ALC_INT_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_MONO_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_QUAD_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_SHORT_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_STEREO_SOFT
Accepted by the
channels parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_UNSIGNED_BYTE_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_UNSIGNED_INT_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
static int |
ALC_UNSIGNED_SHORT_SOFT
Accepted by the
type parameter of IsRenderFormatSupportedSOFT. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
alcIsRenderFormatSupportedSOFT(long device,
int frequency,
int channels,
int type)
When creating contexts, the attribute list must specify the format used for rendering.
|
static long |
alcLoopbackOpenDeviceSOFT(java.nio.ByteBuffer deviceName)
Loopback devices provide a way for applications to "read back" rendered audio without it being sent to an actual audio device.
|
static long |
alcLoopbackOpenDeviceSOFT(java.lang.CharSequence deviceName)
Loopback devices provide a way for applications to "read back" rendered audio without it being sent to an actual audio device.
|
static void |
alcRenderSamplesSOFT(long device,
java.nio.ByteBuffer buffer,
int samples)
The state of various objects on loopback devices (including processed buffers and source offsets) is processed only when new samples are rendered.
|
static void |
alcRenderSamplesSOFT(long device,
float[] buffer,
int samples)
Array version of:
RenderSamplesSOFT |
static void |
alcRenderSamplesSOFT(long device,
java.nio.FloatBuffer buffer,
int samples)
The state of various objects on loopback devices (including processed buffers and source offsets) is processed only when new samples are rendered.
|
static void |
alcRenderSamplesSOFT(long device,
int[] buffer,
int samples)
Array version of:
RenderSamplesSOFT |
static void |
alcRenderSamplesSOFT(long device,
java.nio.IntBuffer buffer,
int samples)
The state of various objects on loopback devices (including processed buffers and source offsets) is processed only when new samples are rendered.
|
static void |
alcRenderSamplesSOFT(long device,
short[] buffer,
int samples)
Array version of:
RenderSamplesSOFT |
static void |
alcRenderSamplesSOFT(long device,
java.nio.ShortBuffer buffer,
int samples)
The state of various objects on loopback devices (including processed buffers and source offsets) is processed only when new samples are rendered.
|
static long |
nalcLoopbackOpenDeviceSOFT(long deviceName)
Unsafe version of:
LoopbackOpenDeviceSOFT |
static void |
nalcRenderSamplesSOFT(long device,
long buffer,
int samples)
Unsafe version of:
RenderSamplesSOFT |
public static final int ALC_BYTE_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_UNSIGNED_BYTE_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_SHORT_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_UNSIGNED_SHORT_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_INT_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_UNSIGNED_INT_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_FLOAT_SOFT
type parameter of IsRenderFormatSupportedSOFT.public static final int ALC_MONO_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_STEREO_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_QUAD_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_5POINT1_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_6POINT1_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_7POINT1_SOFT
channels parameter of IsRenderFormatSupportedSOFT.public static final int ALC_FORMAT_CHANNELS_SOFT
attrList parameter of CreateContext.public static final int ALC_FORMAT_TYPE_SOFT
attrList parameter of CreateContext.public static long nalcLoopbackOpenDeviceSOFT(long deviceName)
LoopbackOpenDeviceSOFTpublic static long alcLoopbackOpenDeviceSOFT(@Nullable
java.nio.ByteBuffer deviceName)
To open a loopback device, use this function.
A loopback device behaves largely the same as a playback device. You may query playback state and error codes, and create contexts, which can then be set as current to generate sources and buffers like normal.
Note that loopback devices do not have either the SYNC or REFRESH attributes. Attempting to query them will result in an INVALID_ENUM
error.
deviceName - which device or device driver to use for subsequent rendering. This may be NULL for an implementation-defined default, otherwise it must be a
valid name returned by enumeration (and further must be a device capable of loopback rendering).public static long alcLoopbackOpenDeviceSOFT(@Nullable
java.lang.CharSequence deviceName)
To open a loopback device, use this function.
A loopback device behaves largely the same as a playback device. You may query playback state and error codes, and create contexts, which can then be set as current to generate sources and buffers like normal.
Note that loopback devices do not have either the SYNC or REFRESH attributes. Attempting to query them will result in an INVALID_ENUM
error.
deviceName - which device or device driver to use for subsequent rendering. This may be NULL for an implementation-defined default, otherwise it must be a
valid name returned by enumeration (and further must be a device capable of loopback rendering).public static boolean alcIsRenderFormatSupportedSOFT(long device,
int frequency,
int channels,
int type)
FORMAT_CHANNELS_SOFT, FORMAT_TYPE_SOFT,
and FREQUENCY attributes. This controls the format of the audio subsequently rendered by the device.
To check if a particular rendering format is available, use this function.
device - the loopback device to queryfrequency - the sample rate of the rendered audiochannels - the channel configuration used for rendering. One of:MONO_SOFT | STEREO_SOFT | QUAD_SOFT | 5POINT1_SOFT | 6POINT1_SOFT | 7POINT1_SOFT |
type - sample type of the written audio. One of:BYTE_SOFT | UNSIGNED_BYTE_SOFT | SHORT_SOFT | UNSIGNED_SHORT_SOFT | INT_SOFT | UNSIGNED_INT_SOFT |
FLOAT_SOFT |
public static void nalcRenderSamplesSOFT(long device,
long buffer,
int samples)
RenderSamplesSOFTpublic static void alcRenderSamplesSOFT(long device,
java.nio.ByteBuffer buffer,
int samples)
device - the loopback device which samples are rendered from, using its contexts and associated buffers and sourcesbuffer - the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.samples - the number of sample frames to renderpublic static void alcRenderSamplesSOFT(long device,
java.nio.ShortBuffer buffer,
int samples)
device - the loopback device which samples are rendered from, using its contexts and associated buffers and sourcesbuffer - the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.samples - the number of sample frames to renderpublic static void alcRenderSamplesSOFT(long device,
java.nio.IntBuffer buffer,
int samples)
device - the loopback device which samples are rendered from, using its contexts and associated buffers and sourcesbuffer - the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.samples - the number of sample frames to renderpublic static void alcRenderSamplesSOFT(long device,
java.nio.FloatBuffer buffer,
int samples)
device - the loopback device which samples are rendered from, using its contexts and associated buffers and sourcesbuffer - the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.samples - the number of sample frames to renderpublic static void alcRenderSamplesSOFT(long device,
short[] buffer,
int samples)
RenderSamplesSOFTpublic static void alcRenderSamplesSOFT(long device,
int[] buffer,
int samples)
RenderSamplesSOFTpublic static void alcRenderSamplesSOFT(long device,
float[] buffer,
int samples)
RenderSamplesSOFTCopyright LWJGL. All Rights Reserved. License terms.