public class ALC11 extends ALC10
| Modifier and Type | Field and Description |
|---|---|
static int |
ALC_ALL_DEVICES_SPECIFIER
String queries.
|
static int |
ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER
String queries.
|
static int |
ALC_CAPTURE_DEVICE_SPECIFIER
String queries.
|
static int |
ALC_CAPTURE_SAMPLES
Integer queries.
|
static int |
ALC_DEFAULT_ALL_DEVICES_SPECIFIER
String queries.
|
static int |
ALC_MONO_SOURCES
Context creation attributes.
|
static int |
ALC_STEREO_SOURCES
Context creation attributes.
|
ALC_ALL_ATTRIBUTES, ALC_ATTRIBUTES_SIZE, ALC_DEFAULT_DEVICE_SPECIFIER, ALC_DEVICE_SPECIFIER, ALC_EXTENSIONS, ALC_FALSE, ALC_FREQUENCY, ALC_INVALID, 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, ALC_REFRESH, ALC_SYNC, ALC_TRUE| Modifier and Type | Method and Description |
|---|---|
static boolean |
alcCaptureCloseDevice(long device)
Allows the application to disconnect from a capture device.
|
static long |
alcCaptureOpenDevice(java.nio.ByteBuffer deviceName,
int frequency,
int format,
int samples)
Allows the application to connect to a capture device.
|
static long |
alcCaptureOpenDevice(java.lang.CharSequence deviceName,
int frequency,
int format,
int samples)
Allows the application to connect to a capture device.
|
static void |
alcCaptureSamples(long device,
java.nio.ByteBuffer buffer,
int samples)
Obtains captured audio samples from the AL.
|
static void |
alcCaptureSamples(long device,
float[] buffer,
int samples)
Array version of:
CaptureSamples |
static void |
alcCaptureSamples(long device,
java.nio.FloatBuffer buffer,
int samples)
Obtains captured audio samples from the AL.
|
static void |
alcCaptureSamples(long device,
int[] buffer,
int samples)
Array version of:
CaptureSamples |
static void |
alcCaptureSamples(long device,
java.nio.IntBuffer buffer,
int samples)
Obtains captured audio samples from the AL.
|
static void |
alcCaptureSamples(long device,
short[] buffer,
int samples)
Array version of:
CaptureSamples |
static void |
alcCaptureSamples(long device,
java.nio.ShortBuffer buffer,
int samples)
Obtains captured audio samples from the AL.
|
static void |
alcCaptureStart(long device)
Starts recording audio on the specific capture device.
|
static void |
alcCaptureStop(long device)
Halts audio capturing without closing the capture device.
|
static long |
nalcCaptureOpenDevice(long deviceName,
int frequency,
int format,
int samples)
Unsafe version of:
CaptureOpenDevice |
static void |
nalcCaptureSamples(long device,
long buffer,
int samples)
Unsafe version of:
CaptureSamples |
alcCloseDevice, alcCreateContext, alcCreateContext, alcDestroyContext, alcGetContextsDevice, alcGetCurrentContext, alcGetEnumValue, alcGetEnumValue, alcGetError, alcGetInteger, alcGetIntegerv, alcGetIntegerv, alcGetProcAddress, alcGetProcAddress, alcGetString, alcIsExtensionPresent, alcIsExtensionPresent, alcMakeContextCurrent, alcOpenDevice, alcOpenDevice, alcProcessContext, alcSuspendContext, nalcCreateContext, nalcGetEnumValue, nalcGetIntegerv, nalcGetProcAddress, nalcGetString, nalcIsExtensionPresent, nalcOpenDevicepublic static final int ALC_MONO_SOURCES
public static final int ALC_STEREO_SOURCES
public static final int ALC_DEFAULT_ALL_DEVICES_SPECIFIER
public static final int ALC_ALL_DEVICES_SPECIFIER
public static final int ALC_CAPTURE_DEVICE_SPECIFIER
public static final int ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER
public static final int ALC_CAPTURE_SAMPLES
public static long nalcCaptureOpenDevice(long deviceName,
int frequency,
int format,
int samples)
CaptureOpenDevicepublic static long alcCaptureOpenDevice(@Nullable
java.nio.ByteBuffer deviceName,
int frequency,
int format,
int samples)
The deviceName argument is a null terminated string that requests a certain device or device configuration. If NULL is specified, the implementation
will provide an implementation specific default.
deviceName - the device or device configurationfrequency - the audio frequencyformat - the audio formatsamples - the number of sample frames to buffer in the ALpublic static long alcCaptureOpenDevice(@Nullable
java.lang.CharSequence deviceName,
int frequency,
int format,
int samples)
The deviceName argument is a null terminated string that requests a certain device or device configuration. If NULL is specified, the implementation
will provide an implementation specific default.
deviceName - the device or device configurationfrequency - the audio frequencyformat - the audio formatsamples - the number of sample frames to buffer in the ALpublic static boolean alcCaptureCloseDevice(long device)
device - the capture device to closepublic static void alcCaptureStart(long device)
Once started, the device will record audio to an internal ring buffer, the size of which was specified when opening the device. The application may query the capture device to discover how much data is currently available via the alcGetInteger with the ALC_CAPTURE_SAMPLES token. This will report the number of sample frames currently available.
device - the capture devicepublic static void alcCaptureStop(long device)
The implementation is encouraged to optimize for this case. The amount of audio samples available after restarting a stopped capture device is reset to zero. The application does not need to stop the capture device to read from it.
device - the capture devicepublic static void nalcCaptureSamples(long device,
long buffer,
int samples)
CaptureSamplespublic static void alcCaptureSamples(long device,
java.nio.ByteBuffer buffer,
int samples)
The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.
device - the capture devicebuffer - 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 obtainpublic static void alcCaptureSamples(long device,
java.nio.ShortBuffer buffer,
int samples)
The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.
device - the capture devicebuffer - 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 obtainpublic static void alcCaptureSamples(long device,
java.nio.IntBuffer buffer,
int samples)
The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.
device - the capture devicebuffer - 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 obtainpublic static void alcCaptureSamples(long device,
java.nio.FloatBuffer buffer,
int samples)
The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.
device - the capture devicebuffer - 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 obtainpublic static void alcCaptureSamples(long device,
short[] buffer,
int samples)
CaptureSamplespublic static void alcCaptureSamples(long device,
int[] buffer,
int samples)
CaptureSamplespublic static void alcCaptureSamples(long device,
float[] buffer,
int samples)
CaptureSamplesCopyright LWJGL. All Rights Reserved. License terms.