Modifier and Type | Field | Description |
---|---|---|
static int |
ALC_ALL_DEVICES_SPECIFIER |
|
static int |
ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER |
|
static int |
ALC_CAPTURE_DEVICE_SPECIFIER |
|
static int |
ALC_CAPTURE_SAMPLES |
|
static int |
ALC_DEFAULT_ALL_DEVICES_SPECIFIER |
|
static int |
ALC_MONO_SOURCES |
|
static int |
ALC_STEREO_SOURCES |
Constructor | Description |
---|---|
ALC11() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
alcCaptureCloseDevice(ALCdevice device) |
The alcCaptureCloseDevice function allows the application to disconnect from a capture
device.
|
static ALCdevice |
alcCaptureOpenDevice(String devicename,
int frequency,
int format,
int buffersize) |
The alcCaptureOpenDevice function allows the application to connect to a capture
device.
|
static void |
alcCaptureSamples(ALCdevice device,
ByteBuffer buffer,
int samples) |
When the application feels there are enough samples available to process, it can obtain
them from the AL via the alcCaptureSamples entry point.
|
static void |
alcCaptureStart(ALCdevice device) |
Once a capture device has been opened via alcCaptureOpenDevice, it is made to start
recording audio via the alcCaptureStart entry point:
Once started, the device will record audio to an internal ring buffer, the size of which was
specified when opening the device.
|
static void |
alcCaptureStop(ALCdevice device) |
If the application doesn't need to capture more audio for an amount of time, they can halt
the device without closing it via the alcCaptureStop entry point.
|
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 final int ALC_MONO_SOURCES
public static final int ALC_STEREO_SOURCES
public static ALCdevice alcCaptureOpenDevice(String devicename, int frequency, int format, int buffersize)
devicename
- Name of device to open for capturefrequency
- Frequency of samples to captureformat
- Format of samples to capturebuffersize
- Size of buffer to capture topublic static boolean alcCaptureCloseDevice(ALCdevice device)
public static void alcCaptureStart(ALCdevice device)
public static void alcCaptureStop(ALCdevice device)
public static void alcCaptureSamples(ALCdevice device, ByteBuffer buffer, int samples)
buffer
- Buffer to store samples insamples
- Number of samples to requestCopyright © 2002-2009 lwjgl.org. All Rights Reserved.