Top Description Fields Constructors Methods
org.lwjgl.openal

public Class ALC11

extends ALC10
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

Native bindings to ALC 1.1 functionality.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
ALC_CAPTURE_SAMPLES

Integer queries.

public static final int
public static final int
ALC_MONO_SOURCES

Context creation attributes.

public static final int
ALC_STEREO_SOURCES

Context creation attributes.

Inherited from org.lwjgl.openal.ALC10:
ALC_ALL_ATTRIBUTESALC_ATTRIBUTES_SIZEALC_DEFAULT_DEVICE_SPECIFIERALC_DEVICE_SPECIFIERALC_EXTENSIONSALC_FALSEALC_FREQUENCYALC_INVALIDALC_INVALID_CONTEXTALC_INVALID_DEVICEALC_INVALID_ENUMALC_INVALID_VALUEALC_MAJOR_VERSIONALC_MINOR_VERSIONALC_NO_ERRORALC_OUT_OF_MEMORYALC_REFRESHALC_SYNCALC_TRUE

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static boolean
alcCaptureCloseDevice(long
the capture device to close
device
)

Allows the application to disconnect from a capture device.

public static long
alcCaptureOpenDevice(ByteBuffer
the device or device configuration
deviceName
,
int
the audio frequency
frequency
,
int
the audio format
format
,
int
the number of sample frames to buffer in the AL
samples
)

Allows the application to connect to a capture device.

public static long
alcCaptureOpenDevice(CharSequence
the device or device configuration
deviceName
,
int
the audio frequency
frequency
,
int
the audio format
format
,
int
the number of sample frames to buffer in the AL
samples
)

Allows the application to connect to a capture device.

public static void
alcCaptureSamples(long
the capture device
device
,
ByteBuffer
the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.
buffer
,
int
the number of sample frames to obtain
samples
)

Obtains captured audio samples from the AL.

public static void
alcCaptureSamples(long
the capture device
device
,
ShortBuffer
the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.
buffer
,
int
the number of sample frames to obtain
samples
)

Obtains captured audio samples from the AL.

public static void
alcCaptureSamples(long
the capture device
device
,
IntBuffer
the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.
buffer
,
int
the number of sample frames to obtain
samples
)

Obtains captured audio samples from the AL.

public static void
alcCaptureSamples(long
the capture device
device
,
FloatBuffer
the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.
buffer
,
int
the number of sample frames to obtain
samples
)

Obtains captured audio samples from the AL.

public static void
alcCaptureSamples(long device, short[] buffer, int samples)

Array version of: CaptureSamples

public static void
alcCaptureSamples(long device, int[] buffer, int samples)

Array version of: CaptureSamples

public static void
alcCaptureSamples(long device, float[] buffer, int samples)

Array version of: CaptureSamples

public static void
alcCaptureStart(long
the capture device
device
)

Starts recording audio on the specific capture device.

public static void
alcCaptureStop(long
the capture device
device
)

Halts audio capturing without closing the capture device.

public static long
nalcCaptureOpenDevice(long deviceName, int frequency, int format, int samples)

Unsafe version of: CaptureOpenDevice

public static void
nalcCaptureSamples(long device, long buffer, int samples)

Unsafe version of: CaptureSamples

Inherited from org.lwjgl.openal.ALC10:
alcCloseDevicealcCreateContextalcCreateContextalcDestroyContextalcGetContextsDevicealcGetCurrentContextalcGetEnumValuealcGetEnumValuealcGetErroralcGetIntegeralcGetIntegervalcGetIntegervalcGetProcAddressalcGetProcAddressalcGetStringalcIsExtensionPresentalcIsExtensionPresentalcMakeContextCurrentalcOpenDevicealcOpenDevicealcProcessContextalcSuspendContextnalcCreateContextnalcGetEnumValuenalcGetIntegervnalcGetProcAddressnalcGetStringnalcIsExtensionPresentnalcOpenDevice

Field Detail

ALC_ALL_DEVICES_SPECIFIERback to summary
public static final int ALC_ALL_DEVICES_SPECIFIER

String queries.

ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIERback to summary
public static final int ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER

String queries.

ALC_CAPTURE_DEVICE_SPECIFIERback to summary
public static final int ALC_CAPTURE_DEVICE_SPECIFIER

String queries.

ALC_CAPTURE_SAMPLESback to summary
public static final int ALC_CAPTURE_SAMPLES

Integer queries.

ALC_DEFAULT_ALL_DEVICES_SPECIFIERback to summary
public static final int ALC_DEFAULT_ALL_DEVICES_SPECIFIER

String queries.

ALC_MONO_SOURCESback to summary
public static final int ALC_MONO_SOURCES

Context creation attributes.

ALC_STEREO_SOURCESback to summary
public static final int ALC_STEREO_SOURCES

Context creation attributes.

Constructor Detail

ALC11back to summary
protected ALC11()

Method Detail

alcCaptureCloseDeviceback to summary
public static boolean alcCaptureCloseDevice(long device)

Allows the application to disconnect from a capture device.

Parameters
device:long

the capture device to close

Annotations
@NativeType:ALCboolean
alcCaptureOpenDeviceback to summary
public static long alcCaptureOpenDevice(ByteBuffer deviceName, int frequency, int format, int samples)

Allows the application to connect to a capture device.

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.

Parameters
deviceName:ByteBuffer

the device or device configuration

frequency:int

the audio frequency

format:int

the audio format

samples:int

the number of sample frames to buffer in the AL

Annotations
@NativeType:ALCdevice *
alcCaptureOpenDeviceback to summary
public static long alcCaptureOpenDevice(CharSequence deviceName, int frequency, int format, int samples)

Allows the application to connect to a capture device.

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.

Parameters
deviceName:CharSequence

the device or device configuration

frequency:int

the audio frequency

format:int

the audio format

samples:int

the number of sample frames to buffer in the AL

Annotations
@NativeType:ALCdevice *
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, ByteBuffer buffer, int samples)

Obtains captured audio samples from the AL.

The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.

Parameters
device:long

the capture device

buffer:ByteBuffer

the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.

samples:int

the number of sample frames to obtain

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, ShortBuffer buffer, int samples)

Obtains captured audio samples from the AL.

The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.

Parameters
device:long

the capture device

buffer:ShortBuffer

the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.

samples:int

the number of sample frames to obtain

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, IntBuffer buffer, int samples)

Obtains captured audio samples from the AL.

The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.

Parameters
device:long

the capture device

buffer:IntBuffer

the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.

samples:int

the number of sample frames to obtain

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, FloatBuffer buffer, int samples)

Obtains captured audio samples from the AL.

The implementation may defer conversion and resampling until this point. Requesting more sample frames than are currently available is an error.

Parameters
device:long

the capture device

buffer:FloatBuffer

the buffer that will receive the samples. It must be big enough to contain at least samples sample frames.

samples:int

the number of sample frames to obtain

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, short[] buffer, int samples)

Array version of: CaptureSamples

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, int[] buffer, int samples)

Array version of: CaptureSamples

Annotations
@NativeType:ALCvoid
alcCaptureSamplesback to summary
public static void alcCaptureSamples(long device, float[] buffer, int samples)

Array version of: CaptureSamples

Annotations
@NativeType:ALCvoid
alcCaptureStartback to summary
public static void alcCaptureStart(long device)

Starts recording audio on the specific capture 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.

Parameters
device:long

the capture device

Annotations
@NativeType:ALCvoid
alcCaptureStopback to summary
public static void alcCaptureStop(long device)

Halts audio capturing without closing the capture 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.

Parameters
device:long

the capture device

Annotations
@NativeType:ALCvoid
nalcCaptureOpenDeviceback to summary
public static long nalcCaptureOpenDevice(long deviceName, int frequency, int format, int samples)

Unsafe version of: CaptureOpenDevice

nalcCaptureSamplesback to summary
public static void nalcCaptureSamples(long device, long buffer, int samples)

Unsafe version of: CaptureSamples