org.lwjgl.openal.AL10 Maven / Gradle / Ivy
Show all versions of lwjgl-openal Show documentation
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.openal;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;
/** Native bindings to AL 1.0 functionality. */
public class AL10 {
/** General tokens. */
public static final int
AL_INVALID = 0xFFFFFFFF,
AL_NONE = 0x0,
AL_FALSE = 0x0,
AL_TRUE = 0x1;
/** Error conditions. */
public static final int
AL_NO_ERROR = 0x0,
AL_INVALID_NAME = 0xA001,
AL_INVALID_ENUM = 0xA002,
AL_INVALID_VALUE = 0xA003,
AL_INVALID_OPERATION = 0xA004,
AL_OUT_OF_MEMORY = 0xA005;
/** Numerical queries. */
public static final int
AL_DOPPLER_FACTOR = 0xC000,
AL_DISTANCE_MODEL = 0xD000;
/** String queries. */
public static final int
AL_VENDOR = 0xB001,
AL_VERSION = 0xB002,
AL_RENDERER = 0xB003,
AL_EXTENSIONS = 0xB004;
/** Distance attenuation models. */
public static final int
AL_INVERSE_DISTANCE = 0xD001,
AL_INVERSE_DISTANCE_CLAMPED = 0xD002;
/** Source types. */
public static final int
AL_SOURCE_ABSOLUTE = 0x201,
AL_SOURCE_RELATIVE = 0x202;
/** Listener and Source attributes. */
public static final int
AL_POSITION = 0x1004,
AL_VELOCITY = 0x1006,
AL_GAIN = 0x100A;
/** Source attributes. */
public static final int
AL_CONE_INNER_ANGLE = 0x1001,
AL_CONE_OUTER_ANGLE = 0x1002,
AL_PITCH = 0x1003,
AL_DIRECTION = 0x1005,
AL_LOOPING = 0x1007,
AL_BUFFER = 0x1009,
AL_SOURCE_STATE = 0x1010,
AL_CONE_OUTER_GAIN = 0x1022,
AL_SOURCE_TYPE = 0x1027;
/** Source state. */
public static final int
AL_INITIAL = 0x1011,
AL_PLAYING = 0x1012,
AL_PAUSED = 0x1013,
AL_STOPPED = 0x1014;
/** Listener attributes. */
public static final int AL_ORIENTATION = 0x100F;
/** Queue state. */
public static final int
AL_BUFFERS_QUEUED = 0x1015,
AL_BUFFERS_PROCESSED = 0x1016;
/** Gain bounds. */
public static final int
AL_MIN_GAIN = 0x100D,
AL_MAX_GAIN = 0x100E;
/** Distance model attributes, */
public static final int
AL_REFERENCE_DISTANCE = 0x1020,
AL_ROLLOFF_FACTOR = 0x1021,
AL_MAX_DISTANCE = 0x1023;
/** Buffer attributes, */
public static final int
AL_FREQUENCY = 0x2001,
AL_BITS = 0x2002,
AL_CHANNELS = 0x2003,
AL_SIZE = 0x2004;
/** Buffer formats. */
public static final int
AL_FORMAT_MONO8 = 0x1100,
AL_FORMAT_MONO16 = 0x1101,
AL_FORMAT_STEREO8 = 0x1102,
AL_FORMAT_STEREO16 = 0x1103;
/** Buffer state. */
public static final int
AL_UNUSED = 0x2010,
AL_PENDING = 0x2011,
AL_PROCESSED = 0x2012;
protected AL10() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(ALCapabilities caps) {
return checkFunctions(
caps.alGetError, caps.alEnable, caps.alDisable, caps.alIsEnabled, caps.alGetBoolean, caps.alGetInteger, caps.alGetFloat, caps.alGetDouble,
caps.alGetBooleanv, caps.alGetIntegerv, caps.alGetFloatv, caps.alGetDoublev, caps.alGetString, caps.alDistanceModel, caps.alDopplerFactor,
caps.alDopplerVelocity, caps.alListenerf, caps.alListeneri, caps.alListener3f, caps.alListenerfv, caps.alGetListenerf, caps.alGetListeneri,
caps.alGetListener3f, caps.alGetListenerfv, caps.alGenSources, caps.alDeleteSources, caps.alIsSource, caps.alSourcef, caps.alSource3f,
caps.alSourcefv, caps.alSourcei, caps.alGetSourcef, caps.alGetSource3f, caps.alGetSourcefv, caps.alGetSourcei, caps.alGetSourceiv,
caps.alSourceQueueBuffers, caps.alSourceUnqueueBuffers, caps.alSourcePlay, caps.alSourcePause, caps.alSourceStop, caps.alSourceRewind,
caps.alSourcePlayv, caps.alSourcePausev, caps.alSourceStopv, caps.alSourceRewindv, caps.alGenBuffers, caps.alDeleteBuffers, caps.alIsBuffer,
caps.alGetBufferf, caps.alGetBufferi, caps.alBufferData, caps.alGetEnumValue, caps.alGetProcAddress, caps.alIsExtensionPresent
);
}
// --- [ alGetError ] ---
/**
* Obtains error information.
*
* Each detectable error is assigned a numeric code. When an error is detected by AL, a flag is set and the error code is recorded. Further errors, if they
* occur, do not affect this recorded code. When alGetError is called, the code is returned and the flag is cleared, so that a further error will again
* record its code. If a call to alGetError returns AL_NO_ERROR then there has been no detectable error since the last call to alGetError (or since the AL
* was initialized).
*
* Error codes can be mapped to strings. The alGetString function returns a pointer to a constant (literal) string that is identical to the identifier used
* for the enumeration value, as defined in the specification.
*/
@NativeType("ALenum")
public static int alGetError() {
long __functionAddress = AL.getICD().alGetError;
return invokeI(__functionAddress);
}
// --- [ alEnable ] ---
/**
* Enables AL capabilities.
*
* @param target the capability to enable
*/
@NativeType("ALvoid")
public static void alEnable(@NativeType("ALenum") int target) {
long __functionAddress = AL.getICD().alEnable;
invokeV(__functionAddress, target);
}
// --- [ alDisable ] ---
/**
* Disables AL capabilities.
*
* @param target the capability to disable
*/
@NativeType("ALvoid")
public static void alDisable(@NativeType("ALenum") int target) {
long __functionAddress = AL.getICD().alDisable;
invokeV(__functionAddress, target);
}
// --- [ alIsEnabled ] ---
/**
* Queries whether a given capability is currently enabled or not.
*
* @param target the capability to query
*/
@NativeType("ALboolean")
public static boolean alIsEnabled(@NativeType("ALenum") int target) {
long __functionAddress = AL.getICD().alIsEnabled;
return invokeZ(__functionAddress, target);
}
// --- [ alGetBoolean ] ---
/**
* Returns the boolean value of the specified parameter.
*
* @param paramName the parameter to query
*/
@NativeType("ALboolean")
public static boolean alGetBoolean(@NativeType("ALenum") int paramName) {
long __functionAddress = AL.getICD().alGetBoolean;
return invokeZ(__functionAddress, paramName);
}
// --- [ alGetInteger ] ---
/**
* Returns the integer value of the specified parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_DOPPLER_FACTOR DOPPLER_FACTOR} {@link #AL_DISTANCE_MODEL DISTANCE_MODEL} {@link AL11#AL_SPEED_OF_SOUND SPEED_OF_SOUND}
*/
@NativeType("ALint")
public static int alGetInteger(@NativeType("ALenum") int paramName) {
long __functionAddress = AL.getICD().alGetInteger;
return invokeI(__functionAddress, paramName);
}
// --- [ alGetFloat ] ---
/**
* Returns the float value of the specified parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_DOPPLER_FACTOR DOPPLER_FACTOR} {@link #AL_DISTANCE_MODEL DISTANCE_MODEL} {@link AL11#AL_SPEED_OF_SOUND SPEED_OF_SOUND}
*/
@NativeType("ALfloat")
public static float alGetFloat(@NativeType("ALenum") int paramName) {
long __functionAddress = AL.getICD().alGetFloat;
return invokeF(__functionAddress, paramName);
}
// --- [ alGetDouble ] ---
/**
* Returns the double value of the specified parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_DOPPLER_FACTOR DOPPLER_FACTOR} {@link #AL_DISTANCE_MODEL DISTANCE_MODEL} {@link AL11#AL_SPEED_OF_SOUND SPEED_OF_SOUND}
*/
@NativeType("ALdouble")
public static double alGetDouble(@NativeType("ALenum") int paramName) {
long __functionAddress = AL.getICD().alGetDouble;
return invokeD(__functionAddress, paramName);
}
// --- [ alGetBooleanv ] ---
/** Unsafe version of: {@link #alGetBooleanv GetBooleanv} */
public static void nalGetBooleanv(int paramName, long dest) {
long __functionAddress = AL.getICD().alGetBooleanv;
invokePV(__functionAddress, paramName, dest);
}
/**
* Pointer version of {@link #alGetBoolean GetBoolean}.
*
* @param paramName the parameter to query
* @param dest a buffer that will receive the parameter values
*/
@NativeType("ALvoid")
public static void alGetBooleanv(@NativeType("ALenum") int paramName, @NativeType("ALboolean *") ByteBuffer dest) {
if (CHECKS) {
check(dest, 1);
}
nalGetBooleanv(paramName, memAddress(dest));
}
// --- [ alGetIntegerv ] ---
/** Unsafe version of: {@link #alGetIntegerv GetIntegerv} */
public static void nalGetIntegerv(int paramName, long dest) {
long __functionAddress = AL.getICD().alGetIntegerv;
invokePV(__functionAddress, paramName, dest);
}
/**
* Pointer version of {@link #alGetInteger GetInteger}.
*
* @param paramName the parameter to query
* @param dest a buffer that will receive the parameter values
*/
@NativeType("ALvoid")
public static void alGetIntegerv(@NativeType("ALenum") int paramName, @NativeType("ALint *") IntBuffer dest) {
if (CHECKS) {
check(dest, 1);
}
nalGetIntegerv(paramName, memAddress(dest));
}
// --- [ alGetFloatv ] ---
/** Unsafe version of: {@link #alGetFloatv GetFloatv} */
public static void nalGetFloatv(int paramName, long dest) {
long __functionAddress = AL.getICD().alGetFloatv;
invokePV(__functionAddress, paramName, dest);
}
/**
* Pointer version of {@link #alGetFloat GetFloat}.
*
* @param paramName the parameter to query
* @param dest a buffer that will receive the parameter values
*/
@NativeType("ALvoid")
public static void alGetFloatv(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") FloatBuffer dest) {
if (CHECKS) {
check(dest, 1);
}
nalGetFloatv(paramName, memAddress(dest));
}
// --- [ alGetDoublev ] ---
/** Unsafe version of: {@link #alGetDoublev GetDoublev} */
public static void nalGetDoublev(int paramName, long dest) {
long __functionAddress = AL.getICD().alGetDoublev;
invokePV(__functionAddress, paramName, dest);
}
/**
* Pointer version of {@link #alGetDouble GetDouble}.
*
* @param paramName the parameter to query
* @param dest a buffer that will receive the parameter values
*/
@NativeType("ALvoid")
public static void alGetDoublev(@NativeType("ALenum") int paramName, @NativeType("ALdouble *") DoubleBuffer dest) {
if (CHECKS) {
check(dest, 1);
}
nalGetDoublev(paramName, memAddress(dest));
}
// --- [ alGetString ] ---
/** Unsafe version of: {@link #alGetString GetString} */
public static long nalGetString(int paramName) {
long __functionAddress = AL.getICD().alGetString;
return invokeP(__functionAddress, paramName);
}
/**
* Returns the string value of the specified parameter
*
* @param paramName the parameter to query. One of:
{@link #AL_VENDOR VENDOR} {@link #AL_VERSION VERSION} {@link #AL_RENDERER RENDERER} {@link #AL_EXTENSIONS EXTENSIONS}
*/
@Nullable
@NativeType("ALchar const *")
public static String alGetString(@NativeType("ALenum") int paramName) {
long __result = nalGetString(paramName);
return memUTF8Safe(__result);
}
// --- [ alDistanceModel ] ---
/**
* Sets the distance attenuation model.
*
* Samples usually use the entire dynamic range of the chosen format/encoding, independent of their real world intensity. For example, a jet engine and a
* clockwork both will have samples with full amplitude. The application will then have to adjust source gain accordingly to account for relative differences.
*
* Source gain is then attenuated by distance. The effective attenuation of a source depends on many factors, among which distance attenuation and source
* and listener gain are only some of the contributing factors. Even if the source and listener gain exceed 1.0 (amplification beyond the guaranteed
* dynamic range), distance and other attenuation might ultimately limit the overall gain to a value below 1.0.
*
* OpenAL currently supports three modes of operation with respect to distance attenuation, including one that is similar to the IASIG I3DL2 model. The
* application can choose one of these models (or chooses to disable distance-dependent attenuation) on a per-context basis.
*
* @param modelName the distance attenuation model to set. One of:
{@link #AL_INVERSE_DISTANCE INVERSE_DISTANCE} {@link #AL_INVERSE_DISTANCE_CLAMPED INVERSE_DISTANCE_CLAMPED} {@link AL11#AL_LINEAR_DISTANCE LINEAR_DISTANCE} {@link AL11#AL_LINEAR_DISTANCE_CLAMPED LINEAR_DISTANCE_CLAMPED} {@link AL11#AL_EXPONENT_DISTANCE EXPONENT_DISTANCE} {@link AL11#AL_EXPONENT_DISTANCE_CLAMPED EXPONENT_DISTANCE_CLAMPED} {@link #AL_NONE NONE}
*/
@NativeType("ALvoid")
public static void alDistanceModel(@NativeType("ALenum") int modelName) {
long __functionAddress = AL.getICD().alDistanceModel;
invokeV(__functionAddress, modelName);
}
// --- [ alDopplerFactor ] ---
/**
* Sets the doppler effect factor.
*
* The Doppler Effect depends on the velocities of source and listener relative to the medium, and the propagation speed of sound in that medium. The
* application might want to emphasize or de-emphasize the Doppler Effect as physically accurate calculation might not give the desired results. The amount
* of frequency shift (pitch change) is proportional to the speed of listener and source along their line of sight. The Doppler Effect as implemented by
* OpenAL is described by the formula below. Effects of the medium (air, water) moving with respect to listener and source are ignored.
*
*
* SS: AL_SPEED_OF_SOUND = speed of sound (default value 343.3)
* DF: AL_DOPPLER_FACTOR = Doppler factor (default 1.0)
* vls: Listener velocity scalar (scalar, projected on source-to-listener vector)
* vss: Source velocity scalar (scalar, projected on source-to-listener vector)
* f: Frequency of sample
* f': effective Doppler shifted frequency
*
* 3D Mathematical representation of vls and vss:
*
* Mag(vector) = sqrt(vector.x * vector.x + vector.y * vector.y + vector.z * vector.z)
* DotProduct(v1, v2) = (v1.x * v2.x + v1.y * v2.y + v1.z * v2.z)
*
* SL = source to listener vector
* SV = Source velocity vector
* LV = Listener velocity vector
*
* vls = DotProduct(SL, LV) / Mag(SL)
* vss = DotProduct(SL, SV) / Mag(SL)
*
* Dopper Calculation:
*
* vss = min(vss, SS / DF)
* vls = min(vls, SS / DF)
*
* f' = f * (SS - DF * vls) / (SS - DF * vss)
*
* The {@code dopplerFactor} is a simple scaling of source and listener velocities to exaggerate or deemphasize the Doppler (pitch) shift resulting from
* the calculation.
*
* @param dopplerFactor the doppler factor
*/
@NativeType("ALvoid")
public static void alDopplerFactor(@NativeType("ALfloat") float dopplerFactor) {
long __functionAddress = AL.getICD().alDopplerFactor;
invokeV(__functionAddress, dopplerFactor);
}
// --- [ alDopplerVelocity ] ---
/**
* Sets the doppler effect propagation velocity.
*
* The OpenAL 1.1 Doppler implementation is different than that of OpenAL 1.0, because the older implementation was confusing and not implemented
* consistently. The new "speed of sound" property makes the 1.1 implementation more intuitive than the old implementation. If your implementation wants to
* support the AL_DOPPLER_VELOCITY parameter (the alDopplerVelocity call will remain as an entry point so that 1.0 applications can link with a 1.1
* library), the above formula can be changed to the following:
*
*
* vss = min(vss, (SS * DV)/DF)
* vls = min(vls, (SS * DV)/DF)
*
* f' = f * (SS * DV - DF*vls) / (SS * DV - DF * vss)
*
* OpenAL 1.1 programmers would never use AL_DOPPLER_VELOCITY (which defaults to 1.0).
*
* @param dopplerVelocity the doppler velocity
*/
@NativeType("ALvoid")
public static void alDopplerVelocity(@NativeType("ALfloat") float dopplerVelocity) {
long __functionAddress = AL.getICD().alDopplerVelocity;
invokeV(__functionAddress, dopplerVelocity);
}
// --- [ alListenerf ] ---
/**
* Sets the float value of a listener parameter.
*
* @param paramName the parameter to modify. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alListenerf(@NativeType("ALenum") int paramName, @NativeType("ALfloat") float value) {
long __functionAddress = AL.getICD().alListenerf;
invokeV(__functionAddress, paramName, value);
}
// --- [ alListeneri ] ---
/**
* Integer version of {@link #alListenerf Listenerf}.
*
* @param paramName the parameter to modify. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param values the parameter value
*/
@NativeType("ALvoid")
public static void alListeneri(@NativeType("ALenum") int paramName, @NativeType("ALint") int values) {
long __functionAddress = AL.getICD().alListeneri;
invokeV(__functionAddress, paramName, values);
}
// --- [ alListener3f ] ---
/**
* Sets the 3 dimensional float values of a listener parameter.
*
* @param paramName the parameter to modify. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param value1 the first value
* @param value2 the second value
* @param value3 the third value
*/
@NativeType("ALvoid")
public static void alListener3f(@NativeType("ALenum") int paramName, @NativeType("ALfloat") float value1, @NativeType("ALfloat") float value2, @NativeType("ALfloat") float value3) {
long __functionAddress = AL.getICD().alListener3f;
invokeV(__functionAddress, paramName, value1, value2, value3);
}
// --- [ alListenerfv ] ---
/** Unsafe version of: {@link #alListenerfv Listenerfv} */
public static void nalListenerfv(int paramName, long values) {
long __functionAddress = AL.getICD().alListenerfv;
invokePV(__functionAddress, paramName, values);
}
/**
* Pointer version of {@link #alListenerf Listenerf}.
*
* @param paramName the parameter to modify
* @param values the parameter values
*/
@NativeType("ALvoid")
public static void alListenerfv(@NativeType("ALenum") int paramName, @NativeType("ALfloat const *") FloatBuffer values) {
if (CHECKS) {
check(values, 1);
}
nalListenerfv(paramName, memAddress(values));
}
// --- [ alGetListenerf ] ---
/** Unsafe version of: {@link #alGetListenerf GetListenerf} */
public static void nalGetListenerf(int paramName, long value) {
long __functionAddress = AL.getICD().alGetListenerf;
invokePV(__functionAddress, paramName, value);
}
/**
* Returns the float value of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetListenerf(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") FloatBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetListenerf(paramName, memAddress(value));
}
/**
* Returns the float value of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
*/
@NativeType("ALvoid")
public static float alGetListenerf(@NativeType("ALenum") int paramName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer value = stack.callocFloat(1);
nalGetListenerf(paramName, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetListeneri ] ---
/** Unsafe version of: {@link #alGetListeneri GetListeneri} */
public static void nalGetListeneri(int paramName, long value) {
long __functionAddress = AL.getICD().alGetListeneri;
invokePV(__functionAddress, paramName, value);
}
/**
* Returns the integer value of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetListeneri(@NativeType("ALenum") int paramName, @NativeType("ALint *") IntBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetListeneri(paramName, memAddress(value));
}
/**
* Returns the integer value of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
*/
@NativeType("ALvoid")
public static int alGetListeneri(@NativeType("ALenum") int paramName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer value = stack.callocInt(1);
nalGetListeneri(paramName, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetListener3f ] ---
/** Unsafe version of: {@link #alGetListener3f GetListener3f} */
public static void nalGetListener3f(int paramName, long value1, long value2, long value3) {
long __functionAddress = AL.getICD().alGetListener3f;
invokePPPV(__functionAddress, paramName, value1, value2, value3);
}
/**
* Returns the 3 dimensional values of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param value1 the first parameter value
* @param value2 the second parameter value
* @param value3 the third parameter value
*/
@NativeType("ALvoid")
public static void alGetListener3f(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") FloatBuffer value1, @NativeType("ALfloat *") FloatBuffer value2, @NativeType("ALfloat *") FloatBuffer value3) {
if (CHECKS) {
check(value1, 1);
check(value2, 1);
check(value3, 1);
}
nalGetListener3f(paramName, memAddress(value1), memAddress(value2), memAddress(value3));
}
// --- [ alGetListenerfv ] ---
/** Unsafe version of: {@link #alGetListenerfv GetListenerfv} */
public static void nalGetListenerfv(int paramName, long values) {
long __functionAddress = AL.getICD().alGetListenerfv;
invokePV(__functionAddress, paramName, values);
}
/**
* Returns float values of a listener parameter.
*
* @param paramName the parameter to query. One of:
{@link #AL_ORIENTATION ORIENTATION} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN}
* @param values the parameter values
*/
@NativeType("ALvoid")
public static void alGetListenerfv(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") FloatBuffer values) {
if (CHECKS) {
check(values, 1);
}
nalGetListenerfv(paramName, memAddress(values));
}
// --- [ alGenSources ] ---
/**
* Unsafe version of: {@link #alGenSources GenSources}
*
* @param n the number of source names to generated
*/
public static void nalGenSources(int n, long srcNames) {
long __functionAddress = AL.getICD().alGenSources;
invokePV(__functionAddress, n, srcNames);
}
/**
* Requests a number of source names.
*
* @param srcNames the buffer that will receive the source names
*/
@NativeType("ALvoid")
public static void alGenSources(@NativeType("ALuint *") IntBuffer srcNames) {
nalGenSources(srcNames.remaining(), memAddress(srcNames));
}
/** Requests a number of source names. */
@NativeType("ALvoid")
public static int alGenSources() {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer srcNames = stack.callocInt(1);
nalGenSources(1, memAddress(srcNames));
return srcNames.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alDeleteSources ] ---
/**
* Unsafe version of: {@link #alDeleteSources DeleteSources}
*
* @param n the number of sources to delete
*/
public static void nalDeleteSources(int n, long sources) {
long __functionAddress = AL.getICD().alDeleteSources;
invokePV(__functionAddress, n, sources);
}
/**
* Requests the deletion of a number of sources.
*
* @param sources the sources to delete
*/
@NativeType("ALvoid")
public static void alDeleteSources(@NativeType("ALuint *") IntBuffer sources) {
nalDeleteSources(sources.remaining(), memAddress(sources));
}
/** Requests the deletion of a number of sources. */
@NativeType("ALvoid")
public static void alDeleteSources(@NativeType("ALuint *") int source) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer sources = stack.ints(source);
nalDeleteSources(1, memAddress(sources));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alIsSource ] ---
/**
* Verifies whether the specified object name is a source name.
*
* @param sourceName a value that may be a source name
*/
@NativeType("ALboolean")
public static boolean alIsSource(@NativeType("ALuint") int sourceName) {
long __functionAddress = AL.getICD().alIsSource;
return invokeZ(__functionAddress, sourceName);
}
// --- [ alSourcef ] ---
/**
* Sets the float value of a source parameter.
*
* @param source the source to modify
* @param param the parameter to modify. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alSourcef(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat") float value) {
long __functionAddress = AL.getICD().alSourcef;
invokeV(__functionAddress, source, param, value);
}
// --- [ alSource3f ] ---
/**
* Sets the 3 dimensional values of a source parameter.
*
* @param source the source to modify
* @param param the parameter to modify. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param v1 the first parameter value
* @param v2 the second parameter value
* @param v3 the third parameter value
*/
@NativeType("ALvoid")
public static void alSource3f(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat") float v1, @NativeType("ALfloat") float v2, @NativeType("ALfloat") float v3) {
long __functionAddress = AL.getICD().alSource3f;
invokeV(__functionAddress, source, param, v1, v2, v3);
}
// --- [ alSourcefv ] ---
/** Unsafe version of: {@link #alSourcefv Sourcefv} */
public static void nalSourcefv(int source, int param, long values) {
long __functionAddress = AL.getICD().alSourcefv;
invokePV(__functionAddress, source, param, values);
}
/**
* Pointer version of {@link #alSourcef Sourcef}.
*
* @param source the source to modify
* @param param the parameter to modify
* @param values the parameter values
*/
@NativeType("ALvoid")
public static void alSourcefv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat const *") FloatBuffer values) {
if (CHECKS) {
check(values, 1);
}
nalSourcefv(source, param, memAddress(values));
}
// --- [ alSourcei ] ---
/**
* Integer version of {@link #alSourcef Sourcef}.
*
* @param source the source to modify
* @param param the parameter to modify
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alSourcei(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALint") int value) {
long __functionAddress = AL.getICD().alSourcei;
invokeV(__functionAddress, source, param, value);
}
// --- [ alGetSourcef ] ---
/** Unsafe version of: {@link #alGetSourcef GetSourcef} */
public static void nalGetSourcef(int source, int param, long value) {
long __functionAddress = AL.getICD().alGetSourcef;
invokePV(__functionAddress, source, param, value);
}
/**
* Returns the float value of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetSourcef(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") FloatBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetSourcef(source, param, memAddress(value));
}
/**
* Returns the float value of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
*/
@NativeType("ALvoid")
public static float alGetSourcef(@NativeType("ALuint") int source, @NativeType("ALenum") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer value = stack.callocFloat(1);
nalGetSourcef(source, param, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetSource3f ] ---
/** Unsafe version of: {@link #alGetSource3f GetSource3f} */
public static void nalGetSource3f(int source, int param, long v1, long v2, long v3) {
long __functionAddress = AL.getICD().alGetSource3f;
invokePPPV(__functionAddress, source, param, v1, v2, v3);
}
/**
* Returns the 3 dimensional values of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param v1 the first parameter value
* @param v2 the second parameter value
* @param v3 the third parameter value
*/
@NativeType("ALvoid")
public static void alGetSource3f(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") FloatBuffer v1, @NativeType("ALfloat *") FloatBuffer v2, @NativeType("ALfloat *") FloatBuffer v3) {
if (CHECKS) {
check(v1, 1);
check(v2, 1);
check(v3, 1);
}
nalGetSource3f(source, param, memAddress(v1), memAddress(v2), memAddress(v3));
}
// --- [ alGetSourcefv ] ---
/** Unsafe version of: {@link #alGetSourcefv GetSourcefv} */
public static void nalGetSourcefv(int source, int param, long values) {
long __functionAddress = AL.getICD().alGetSourcefv;
invokePV(__functionAddress, source, param, values);
}
/**
* Returns the float values of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param values the parameter values
*/
@NativeType("ALvoid")
public static void alGetSourcefv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") FloatBuffer values) {
if (CHECKS) {
check(values, 1);
}
nalGetSourcefv(source, param, memAddress(values));
}
// --- [ alGetSourcei ] ---
/** Unsafe version of: {@link #alGetSourcei GetSourcei} */
public static void nalGetSourcei(int source, int param, long value) {
long __functionAddress = AL.getICD().alGetSourcei;
invokePV(__functionAddress, source, param, value);
}
/**
* Returns the integer value of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetSourcei(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALint *") IntBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetSourcei(source, param, memAddress(value));
}
/**
* Returns the integer value of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
*/
@NativeType("ALvoid")
public static int alGetSourcei(@NativeType("ALuint") int source, @NativeType("ALenum") int param) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer value = stack.callocInt(1);
nalGetSourcei(source, param, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetSourceiv ] ---
/** Unsafe version of: {@link #alGetSourceiv GetSourceiv} */
public static void nalGetSourceiv(int source, int param, long values) {
long __functionAddress = AL.getICD().alGetSourceiv;
invokePV(__functionAddress, source, param, values);
}
/**
* Returns the integer values of the specified source parameter.
*
* @param source the source to query
* @param param the parameter to query. One of:
{@link #AL_CONE_INNER_ANGLE CONE_INNER_ANGLE} {@link #AL_CONE_OUTER_ANGLE CONE_OUTER_ANGLE} {@link #AL_PITCH PITCH} {@link #AL_DIRECTION DIRECTION} {@link #AL_LOOPING LOOPING} {@link #AL_BUFFER BUFFER} {@link #AL_SOURCE_STATE SOURCE_STATE} {@link #AL_CONE_OUTER_GAIN CONE_OUTER_GAIN} {@link #AL_SOURCE_TYPE SOURCE_TYPE} {@link #AL_POSITION POSITION} {@link #AL_VELOCITY VELOCITY} {@link #AL_GAIN GAIN} {@link #AL_REFERENCE_DISTANCE REFERENCE_DISTANCE} {@link #AL_ROLLOFF_FACTOR ROLLOFF_FACTOR} {@link #AL_MAX_DISTANCE MAX_DISTANCE}
* @param values the parameter values
*/
@NativeType("ALvoid")
public static void alGetSourceiv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALint *") IntBuffer values) {
if (CHECKS) {
check(values, 1);
}
nalGetSourceiv(source, param, memAddress(values));
}
// --- [ alSourceQueueBuffers ] ---
/**
* Unsafe version of: {@link #alSourceQueueBuffers SourceQueueBuffers}
*
* @param numBuffers the number of buffers to queue
*/
public static void nalSourceQueueBuffers(int sourceName, int numBuffers, long bufferNames) {
long __functionAddress = AL.getICD().alSourceQueueBuffers;
invokePV(__functionAddress, sourceName, numBuffers, bufferNames);
}
/**
* Queues up one or multiple buffer names to the specified source.
*
* The buffers will be queued in the sequence in which they appear in the array. This command is legal on a source in any playback state (to allow for
* streaming, queuing has to be possible on a AL_PLAYING source). All buffers in a queue must have the same format and attributes, with the exception of
* the {@code NULL} buffer (i.e., 0) which can always be queued.
*
* @param sourceName the target source
* @param bufferNames the buffer names
*/
@NativeType("ALvoid")
public static void alSourceQueueBuffers(@NativeType("ALuint") int sourceName, @NativeType("ALuint *") IntBuffer bufferNames) {
nalSourceQueueBuffers(sourceName, bufferNames.remaining(), memAddress(bufferNames));
}
/**
* Queues up one or multiple buffer names to the specified source.
*
* The buffers will be queued in the sequence in which they appear in the array. This command is legal on a source in any playback state (to allow for
* streaming, queuing has to be possible on a AL_PLAYING source). All buffers in a queue must have the same format and attributes, with the exception of
* the {@code NULL} buffer (i.e., 0) which can always be queued.
*
* @param sourceName the target source
*/
@NativeType("ALvoid")
public static void alSourceQueueBuffers(@NativeType("ALuint") int sourceName, @NativeType("ALuint *") int bufferName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer bufferNames = stack.ints(bufferName);
nalSourceQueueBuffers(sourceName, 1, memAddress(bufferNames));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alSourceUnqueueBuffers ] ---
/**
* Unsafe version of: {@link #alSourceUnqueueBuffers SourceUnqueueBuffers}
*
* @param numEntries the number of buffers to unqueue
*/
public static void nalSourceUnqueueBuffers(int sourceName, int numEntries, long bufferNames) {
long __functionAddress = AL.getICD().alSourceUnqueueBuffers;
invokePV(__functionAddress, sourceName, numEntries, bufferNames);
}
/**
* Removes a number of buffer entries that have finished processing, in the order of apperance, from the queue of the specified source.
*
* Once a queue entry for a buffer has been appended to a queue and is pending processing, it should not be changed. Removal of a given queue entry is not
* possible unless either the source is stopped (in which case then entire queue is considered processed), or if the queue entry has already been processed
* (AL_PLAYING or AL_PAUSED source). A playing source will enter the AL_STOPPED state if it completes playback of the last buffer in its queue (the same
* behavior as when a single buffer has been attached to a source and has finished playback).
*
* @param sourceName the target source
* @param bufferNames the buffer names
*/
@NativeType("ALvoid")
public static void alSourceUnqueueBuffers(@NativeType("ALuint") int sourceName, @NativeType("ALuint *") IntBuffer bufferNames) {
nalSourceUnqueueBuffers(sourceName, bufferNames.remaining(), memAddress(bufferNames));
}
/**
* Removes a number of buffer entries that have finished processing, in the order of apperance, from the queue of the specified source.
*
* Once a queue entry for a buffer has been appended to a queue and is pending processing, it should not be changed. Removal of a given queue entry is not
* possible unless either the source is stopped (in which case then entire queue is considered processed), or if the queue entry has already been processed
* (AL_PLAYING or AL_PAUSED source). A playing source will enter the AL_STOPPED state if it completes playback of the last buffer in its queue (the same
* behavior as when a single buffer has been attached to a source and has finished playback).
*
* @param sourceName the target source
*/
@NativeType("ALvoid")
public static int alSourceUnqueueBuffers(@NativeType("ALuint") int sourceName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer bufferNames = stack.callocInt(1);
nalSourceUnqueueBuffers(sourceName, 1, memAddress(bufferNames));
return bufferNames.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alSourcePlay ] ---
/**
* Sets the source state to AL_PLAYING.
*
* alSourcePlay applied to an AL_INITIAL source will promote the source to AL_PLAYING, thus the data found in the buffer will be fed into the processing,
* starting at the beginning. alSourcePlay applied to a AL_PLAYING source will restart the source from the beginning. It will not affect the configuration,
* and will leave the source in AL_PLAYING state, but reset the sampling offset to the beginning. alSourcePlay applied to a AL_PAUSED source will resume
* processing using the source state as preserved at the alSourcePause operation. alSourcePlay applied to a AL_STOPPED source will propagate it to
* AL_INITIAL then to AL_PLAYING immediately.
*
* @param source the source to play
*/
@NativeType("ALvoid")
public static void alSourcePlay(@NativeType("ALuint") int source) {
long __functionAddress = AL.getICD().alSourcePlay;
invokeV(__functionAddress, source);
}
// --- [ alSourcePause ] ---
/**
* Sets the source state to AL_PAUSED.
*
* alSourcePause applied to an AL_INITIAL source is a legal NOP. alSourcePause applied to a AL_PLAYING source will change its state to AL_PAUSED. The
* source is exempt from processing, its current state is preserved. alSourcePause applied to a AL_PAUSED source is a legal NOP. alSourcePause applied to a
* AL_STOPPED source is a legal NOP.
*
* @param source the source to pause
*/
@NativeType("ALvoid")
public static void alSourcePause(@NativeType("ALuint") int source) {
long __functionAddress = AL.getICD().alSourcePause;
invokeV(__functionAddress, source);
}
// --- [ alSourceStop ] ---
/**
* Sets the source state to AL_STOPPED.
*
* alSourceStop applied to an AL_INITIAL source is a legal NOP. alSourceStop applied to a AL_PLAYING source will change its state to AL_STOPPED. The source
* is exempt from processing, its current state is preserved. alSourceStop applied to a AL_PAUSED source will change its state to AL_STOPPED, with the same
* consequences as on a AL_PLAYING source. alSourceStop applied to a AL_STOPPED source is a legal NOP.
*
* @param source the source to stop
*/
@NativeType("ALvoid")
public static void alSourceStop(@NativeType("ALuint") int source) {
long __functionAddress = AL.getICD().alSourceStop;
invokeV(__functionAddress, source);
}
// --- [ alSourceRewind ] ---
/**
* Sets the source state to AL_INITIAL.
*
* alSourceRewind applied to an AL_INITIAL source is a legal NOP. alSourceRewind applied to a AL_PLAYING source will change its state to AL_STOPPED then
* AL_INITIAL. The source is exempt from processing: its current state is preserved, with the exception of the sampling offset, which is reset to the
* beginning. alSourceRewind applied to a AL_PAUSED source will change its state to AL_INITIAL, with the same consequences as on a AL_PLAYING source.
* alSourceRewind applied to an AL_STOPPED source promotes the source to AL_INITIAL, resetting the sampling offset to the beginning.
*
* @param source the source to rewind
*/
@NativeType("ALvoid")
public static void alSourceRewind(@NativeType("ALuint") int source) {
long __functionAddress = AL.getICD().alSourceRewind;
invokeV(__functionAddress, source);
}
// --- [ alSourcePlayv ] ---
/**
* Unsafe version of: {@link #alSourcePlayv SourcePlayv}
*
* @param n the number of sources to play
*/
public static void nalSourcePlayv(int n, long sources) {
long __functionAddress = AL.getICD().alSourcePlayv;
invokePV(__functionAddress, n, sources);
}
/**
* Pointer version of {@link #alSourcePlay SourcePlay}.
*
* @param sources the sources to play
*/
@NativeType("ALvoid")
public static void alSourcePlayv(@NativeType("ALuint const *") IntBuffer sources) {
nalSourcePlayv(sources.remaining(), memAddress(sources));
}
// --- [ alSourcePausev ] ---
/**
* Unsafe version of: {@link #alSourcePausev SourcePausev}
*
* @param n the number of sources to pause
*/
public static void nalSourcePausev(int n, long sources) {
long __functionAddress = AL.getICD().alSourcePausev;
invokePV(__functionAddress, n, sources);
}
/**
* Pointer version of {@link #alSourcePause SourcePause}.
*
* @param sources the sources to pause
*/
@NativeType("ALvoid")
public static void alSourcePausev(@NativeType("ALuint const *") IntBuffer sources) {
nalSourcePausev(sources.remaining(), memAddress(sources));
}
// --- [ alSourceStopv ] ---
/**
* Unsafe version of: {@link #alSourceStopv SourceStopv}
*
* @param n the number of sources to stop
*/
public static void nalSourceStopv(int n, long sources) {
long __functionAddress = AL.getICD().alSourceStopv;
invokePV(__functionAddress, n, sources);
}
/**
* Pointer version of {@link #alSourceStop SourceStop}.
*
* @param sources the sources to stop
*/
@NativeType("ALvoid")
public static void alSourceStopv(@NativeType("ALuint const *") IntBuffer sources) {
nalSourceStopv(sources.remaining(), memAddress(sources));
}
// --- [ alSourceRewindv ] ---
/**
* Unsafe version of: {@link #alSourceRewindv SourceRewindv}
*
* @param n the number of sources to rewind
*/
public static void nalSourceRewindv(int n, long sources) {
long __functionAddress = AL.getICD().alSourceRewindv;
invokePV(__functionAddress, n, sources);
}
/**
* Pointer version of {@link #alSourceRewind SourceRewind}.
*
* @param sources the sources to rewind
*/
@NativeType("ALvoid")
public static void alSourceRewindv(@NativeType("ALuint const *") IntBuffer sources) {
nalSourceRewindv(sources.remaining(), memAddress(sources));
}
// --- [ alGenBuffers ] ---
/**
* Unsafe version of: {@link #alGenBuffers GenBuffers}
*
* @param n the number of buffer names to generate
*/
public static void nalGenBuffers(int n, long bufferNames) {
long __functionAddress = AL.getICD().alGenBuffers;
invokePV(__functionAddress, n, bufferNames);
}
/**
* Requests a number of buffer names.
*
* @param bufferNames the buffer that will receive the buffer names
*/
@NativeType("ALvoid")
public static void alGenBuffers(@NativeType("ALuint *") IntBuffer bufferNames) {
nalGenBuffers(bufferNames.remaining(), memAddress(bufferNames));
}
/** Requests a number of buffer names. */
@NativeType("ALvoid")
public static int alGenBuffers() {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer bufferNames = stack.callocInt(1);
nalGenBuffers(1, memAddress(bufferNames));
return bufferNames.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alDeleteBuffers ] ---
/**
* Unsafe version of: {@link #alDeleteBuffers DeleteBuffers}
*
* @param n the number of buffers to delete
*/
public static void nalDeleteBuffers(int n, long bufferNames) {
long __functionAddress = AL.getICD().alDeleteBuffers;
invokePV(__functionAddress, n, bufferNames);
}
/**
* Requests the deletion of a number of buffers.
*
* @param bufferNames the buffers to delete
*/
@NativeType("ALvoid")
public static void alDeleteBuffers(@NativeType("ALuint const *") IntBuffer bufferNames) {
nalDeleteBuffers(bufferNames.remaining(), memAddress(bufferNames));
}
/** Requests the deletion of a number of buffers. */
@NativeType("ALvoid")
public static void alDeleteBuffers(@NativeType("ALuint const *") int bufferName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer bufferNames = stack.ints(bufferName);
nalDeleteBuffers(1, memAddress(bufferNames));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alIsBuffer ] ---
/**
* Verifies whether the specified object name is a buffer name.
*
* @param bufferName a value that may be a buffer name
*/
@NativeType("ALboolean")
public static boolean alIsBuffer(@NativeType("ALuint") int bufferName) {
long __functionAddress = AL.getICD().alIsBuffer;
return invokeZ(__functionAddress, bufferName);
}
// --- [ alGetBufferf ] ---
/** Unsafe version of: {@link #alGetBufferf GetBufferf} */
public static void nalGetBufferf(int bufferName, int paramName, long value) {
long __functionAddress = AL.getICD().alGetBufferf;
invokePV(__functionAddress, bufferName, paramName, value);
}
/**
* Returns the float value of the specified buffer parameter.
*
* @param bufferName the buffer to query
* @param paramName the parameter to query. One of:
{@link #AL_FREQUENCY FREQUENCY} {@link #AL_BITS BITS} {@link #AL_CHANNELS CHANNELS} {@link #AL_SIZE SIZE}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetBufferf(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName, @NativeType("ALfloat *") FloatBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetBufferf(bufferName, paramName, memAddress(value));
}
/**
* Returns the float value of the specified buffer parameter.
*
* @param bufferName the buffer to query
* @param paramName the parameter to query. One of:
{@link #AL_FREQUENCY FREQUENCY} {@link #AL_BITS BITS} {@link #AL_CHANNELS CHANNELS} {@link #AL_SIZE SIZE}
*/
@NativeType("ALvoid")
public static float alGetBufferf(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer value = stack.callocFloat(1);
nalGetBufferf(bufferName, paramName, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetBufferi ] ---
/** Unsafe version of: {@link #alGetBufferi GetBufferi} */
public static void nalGetBufferi(int bufferName, int paramName, long value) {
long __functionAddress = AL.getICD().alGetBufferi;
invokePV(__functionAddress, bufferName, paramName, value);
}
/**
* Returns the integer value of the specified buffer parameter.
*
* @param bufferName the buffer to query
* @param paramName the parameter to query. One of:
{@link #AL_FREQUENCY FREQUENCY} {@link #AL_BITS BITS} {@link #AL_CHANNELS CHANNELS} {@link #AL_SIZE SIZE}
* @param value the parameter value
*/
@NativeType("ALvoid")
public static void alGetBufferi(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName, @NativeType("ALint *") IntBuffer value) {
if (CHECKS) {
check(value, 1);
}
nalGetBufferi(bufferName, paramName, memAddress(value));
}
/**
* Returns the integer value of the specified buffer parameter.
*
* @param bufferName the buffer to query
* @param paramName the parameter to query. One of:
{@link #AL_FREQUENCY FREQUENCY} {@link #AL_BITS BITS} {@link #AL_CHANNELS CHANNELS} {@link #AL_SIZE SIZE}
*/
@NativeType("ALvoid")
public static int alGetBufferi(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer value = stack.callocInt(1);
nalGetBufferi(bufferName, paramName, memAddress(value));
return value.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alBufferData ] ---
/**
* Unsafe version of: {@link #alBufferData BufferData}
*
* @param size the data buffer size, in bytes
*/
public static void nalBufferData(int bufferName, int format, long data, int size, int frequency) {
long __functionAddress = AL.getICD().alBufferData;
invokePV(__functionAddress, bufferName, format, data, size, frequency);
}
/**
* Sets the sample data of the specified buffer.
*
* The data specified is copied to an internal software, or if possible, hardware buffer. The implementation is free to apply decompression, conversion,
* resampling, and filtering as needed.
*
* 8-bit data is expressed as an unsigned value over the range 0 to 255, 128 being an audio output level of zero.
*
* 16-bit data is expressed as a signed value over the range -32768 to 32767, 0 being an audio output level of zero. Byte order for 16-bit values is
* determined by the native format of the CPU.
*
* Stereo data is expressed in an interleaved format, left channel sample followed by the right channel sample.
*
* Buffers containing audio data with more than one channel will be played without 3D spatialization features – these formats are normally used for
* background music.
*
* @param bufferName the buffer to modify
* @param format the data format. One of:
{@link #AL_FORMAT_MONO8 FORMAT_MONO8} {@link #AL_FORMAT_MONO16 FORMAT_MONO16} {@link #AL_FORMAT_STEREO8 FORMAT_STEREO8} {@link #AL_FORMAT_STEREO16 FORMAT_STEREO16}
* @param data the sample data
* @param frequency the data frequency
*/
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ByteBuffer data, @NativeType("ALsizei") int frequency) {
nalBufferData(bufferName, format, memAddress(data), data.remaining(), frequency);
}
/**
* Sets the sample data of the specified buffer.
*
* The data specified is copied to an internal software, or if possible, hardware buffer. The implementation is free to apply decompression, conversion,
* resampling, and filtering as needed.
*
* 8-bit data is expressed as an unsigned value over the range 0 to 255, 128 being an audio output level of zero.
*
* 16-bit data is expressed as a signed value over the range -32768 to 32767, 0 being an audio output level of zero. Byte order for 16-bit values is
* determined by the native format of the CPU.
*
* Stereo data is expressed in an interleaved format, left channel sample followed by the right channel sample.
*
* Buffers containing audio data with more than one channel will be played without 3D spatialization features – these formats are normally used for
* background music.
*
* @param bufferName the buffer to modify
* @param format the data format. One of:
{@link #AL_FORMAT_MONO8 FORMAT_MONO8} {@link #AL_FORMAT_MONO16 FORMAT_MONO16} {@link #AL_FORMAT_STEREO8 FORMAT_STEREO8} {@link #AL_FORMAT_STEREO16 FORMAT_STEREO16}
* @param data the sample data
* @param frequency the data frequency
*/
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") ShortBuffer data, @NativeType("ALsizei") int frequency) {
nalBufferData(bufferName, format, memAddress(data), data.remaining() << 1, frequency);
}
/**
* Sets the sample data of the specified buffer.
*
* The data specified is copied to an internal software, or if possible, hardware buffer. The implementation is free to apply decompression, conversion,
* resampling, and filtering as needed.
*
* 8-bit data is expressed as an unsigned value over the range 0 to 255, 128 being an audio output level of zero.
*
* 16-bit data is expressed as a signed value over the range -32768 to 32767, 0 being an audio output level of zero. Byte order for 16-bit values is
* determined by the native format of the CPU.
*
* Stereo data is expressed in an interleaved format, left channel sample followed by the right channel sample.
*
* Buffers containing audio data with more than one channel will be played without 3D spatialization features – these formats are normally used for
* background music.
*
* @param bufferName the buffer to modify
* @param format the data format. One of:
{@link #AL_FORMAT_MONO8 FORMAT_MONO8} {@link #AL_FORMAT_MONO16 FORMAT_MONO16} {@link #AL_FORMAT_STEREO8 FORMAT_STEREO8} {@link #AL_FORMAT_STEREO16 FORMAT_STEREO16}
* @param data the sample data
* @param frequency the data frequency
*/
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") IntBuffer data, @NativeType("ALsizei") int frequency) {
nalBufferData(bufferName, format, memAddress(data), data.remaining() << 2, frequency);
}
/**
* Sets the sample data of the specified buffer.
*
* The data specified is copied to an internal software, or if possible, hardware buffer. The implementation is free to apply decompression, conversion,
* resampling, and filtering as needed.
*
* 8-bit data is expressed as an unsigned value over the range 0 to 255, 128 being an audio output level of zero.
*
* 16-bit data is expressed as a signed value over the range -32768 to 32767, 0 being an audio output level of zero. Byte order for 16-bit values is
* determined by the native format of the CPU.
*
* Stereo data is expressed in an interleaved format, left channel sample followed by the right channel sample.
*
* Buffers containing audio data with more than one channel will be played without 3D spatialization features – these formats are normally used for
* background music.
*
* @param bufferName the buffer to modify
* @param format the data format. One of:
{@link #AL_FORMAT_MONO8 FORMAT_MONO8} {@link #AL_FORMAT_MONO16 FORMAT_MONO16} {@link #AL_FORMAT_STEREO8 FORMAT_STEREO8} {@link #AL_FORMAT_STEREO16 FORMAT_STEREO16}
* @param data the sample data
* @param frequency the data frequency
*/
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") FloatBuffer data, @NativeType("ALsizei") int frequency) {
nalBufferData(bufferName, format, memAddress(data), data.remaining() << 2, frequency);
}
// --- [ alGetEnumValue ] ---
/** Unsafe version of: {@link #alGetEnumValue GetEnumValue} */
public static int nalGetEnumValue(long enumName) {
long __functionAddress = AL.getICD().alGetEnumValue;
return invokePI(__functionAddress, enumName);
}
/**
* Returns the enumeration value of the specified enum.
*
* @param enumName the enum name
*/
@NativeType("ALuint")
public static int alGetEnumValue(@NativeType("ALchar const *") ByteBuffer enumName) {
if (CHECKS) {
checkNT1(enumName);
}
return nalGetEnumValue(memAddress(enumName));
}
/**
* Returns the enumeration value of the specified enum.
*
* @param enumName the enum name
*/
@NativeType("ALuint")
public static int alGetEnumValue(@NativeType("ALchar const *") CharSequence enumName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
ByteBuffer enumNameEncoded = stack.ASCII(enumName);
return nalGetEnumValue(memAddress(enumNameEncoded));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alGetProcAddress ] ---
/** Unsafe version of: {@link #alGetProcAddress GetProcAddress} */
public static long nalGetProcAddress(long funcName) {
long __functionAddress = AL.getICD().alGetProcAddress;
return invokePP(__functionAddress, funcName);
}
/**
* Retrieves extension entry points.
*
* Returns {@code NULL} if no entry point with the name funcName can be found. Implementations are free to return {@code NULL} if an entry point is present, but not
* applicable for the current context. However the specification does not guarantee this behavior.
*
* Applications can use alGetProcAddress to obtain core API entry points, not just extensions. This is the recommended way to dynamically load and unload
* OpenAL DLL's as sound drivers.
*
* @param funcName the function name
*/
@NativeType("void *")
public static long alGetProcAddress(@NativeType("ALchar const *") ByteBuffer funcName) {
if (CHECKS) {
checkNT1(funcName);
}
return nalGetProcAddress(memAddress(funcName));
}
/**
* Retrieves extension entry points.
*
* Returns {@code NULL} if no entry point with the name funcName can be found. Implementations are free to return {@code NULL} if an entry point is present, but not
* applicable for the current context. However the specification does not guarantee this behavior.
*
* Applications can use alGetProcAddress to obtain core API entry points, not just extensions. This is the recommended way to dynamically load and unload
* OpenAL DLL's as sound drivers.
*
* @param funcName the function name
*/
@NativeType("void *")
public static long alGetProcAddress(@NativeType("ALchar const *") CharSequence funcName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
ByteBuffer funcNameEncoded = stack.ASCII(funcName);
return nalGetProcAddress(memAddress(funcNameEncoded));
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ alIsExtensionPresent ] ---
/** Unsafe version of: {@link #alIsExtensionPresent IsExtensionPresent} */
public static boolean nalIsExtensionPresent(long extName) {
long __functionAddress = AL.getICD().alIsExtensionPresent;
return invokePZ(__functionAddress, extName);
}
/**
* Verifies that a given extension is available for the current context and the device it is associated with.
*
* Invalid and unsupported string tokens return ALC_FALSE. {@code extName} is not case sensitive – the implementation will convert the name to all
* upper-case internally (and will express extension names in upper-case).
*
* @param extName the extension name
*/
@NativeType("ALCboolean")
public static boolean alIsExtensionPresent(@NativeType("ALchar const *") ByteBuffer extName) {
if (CHECKS) {
checkNT1(extName);
}
return nalIsExtensionPresent(memAddress(extName));
}
/**
* Verifies that a given extension is available for the current context and the device it is associated with.
*
* Invalid and unsupported string tokens return ALC_FALSE. {@code extName} is not case sensitive – the implementation will convert the name to all
* upper-case internally (and will express extension names in upper-case).
*
* @param extName the extension name
*/
@NativeType("ALCboolean")
public static boolean alIsExtensionPresent(@NativeType("ALchar const *") CharSequence extName) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
ByteBuffer extNameEncoded = stack.ASCII(extName);
return nalIsExtensionPresent(memAddress(extNameEncoded));
} finally {
stack.setPointer(stackPointer);
}
}
/** Array version of: {@link #alGetIntegerv GetIntegerv} */
@NativeType("ALvoid")
public static void alGetIntegerv(@NativeType("ALenum") int paramName, @NativeType("ALint *") int[] dest) {
long __functionAddress = AL.getICD().alGetIntegerv;
if (CHECKS) {
check(dest, 1);
}
invokePV(__functionAddress, paramName, dest);
}
/** Array version of: {@link #alGetFloatv GetFloatv} */
@NativeType("ALvoid")
public static void alGetFloatv(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") float[] dest) {
long __functionAddress = AL.getICD().alGetFloatv;
if (CHECKS) {
check(dest, 1);
}
invokePV(__functionAddress, paramName, dest);
}
/** Array version of: {@link #alGetDoublev GetDoublev} */
@NativeType("ALvoid")
public static void alGetDoublev(@NativeType("ALenum") int paramName, @NativeType("ALdouble *") double[] dest) {
long __functionAddress = AL.getICD().alGetDoublev;
if (CHECKS) {
check(dest, 1);
}
invokePV(__functionAddress, paramName, dest);
}
/** Array version of: {@link #alListenerfv Listenerfv} */
@NativeType("ALvoid")
public static void alListenerfv(@NativeType("ALenum") int paramName, @NativeType("ALfloat const *") float[] values) {
long __functionAddress = AL.getICD().alListenerfv;
if (CHECKS) {
check(values, 1);
}
invokePV(__functionAddress, paramName, values);
}
/** Array version of: {@link #alGetListenerf GetListenerf} */
@NativeType("ALvoid")
public static void alGetListenerf(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") float[] value) {
long __functionAddress = AL.getICD().alGetListenerf;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, paramName, value);
}
/** Array version of: {@link #alGetListeneri GetListeneri} */
@NativeType("ALvoid")
public static void alGetListeneri(@NativeType("ALenum") int paramName, @NativeType("ALint *") int[] value) {
long __functionAddress = AL.getICD().alGetListeneri;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, paramName, value);
}
/** Array version of: {@link #alGetListener3f GetListener3f} */
@NativeType("ALvoid")
public static void alGetListener3f(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") float[] value1, @NativeType("ALfloat *") float[] value2, @NativeType("ALfloat *") float[] value3) {
long __functionAddress = AL.getICD().alGetListener3f;
if (CHECKS) {
check(value1, 1);
check(value2, 1);
check(value3, 1);
}
invokePPPV(__functionAddress, paramName, value1, value2, value3);
}
/** Array version of: {@link #alGetListenerfv GetListenerfv} */
@NativeType("ALvoid")
public static void alGetListenerfv(@NativeType("ALenum") int paramName, @NativeType("ALfloat *") float[] values) {
long __functionAddress = AL.getICD().alGetListenerfv;
if (CHECKS) {
check(values, 1);
}
invokePV(__functionAddress, paramName, values);
}
/** Array version of: {@link #alGenSources GenSources} */
@NativeType("ALvoid")
public static void alGenSources(@NativeType("ALuint *") int[] srcNames) {
long __functionAddress = AL.getICD().alGenSources;
invokePV(__functionAddress, srcNames.length, srcNames);
}
/** Array version of: {@link #alDeleteSources DeleteSources} */
@NativeType("ALvoid")
public static void alDeleteSources(@NativeType("ALuint *") int[] sources) {
long __functionAddress = AL.getICD().alDeleteSources;
invokePV(__functionAddress, sources.length, sources);
}
/** Array version of: {@link #alSourcefv Sourcefv} */
@NativeType("ALvoid")
public static void alSourcefv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat const *") float[] values) {
long __functionAddress = AL.getICD().alSourcefv;
if (CHECKS) {
check(values, 1);
}
invokePV(__functionAddress, source, param, values);
}
/** Array version of: {@link #alGetSourcef GetSourcef} */
@NativeType("ALvoid")
public static void alGetSourcef(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") float[] value) {
long __functionAddress = AL.getICD().alGetSourcef;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, source, param, value);
}
/** Array version of: {@link #alGetSource3f GetSource3f} */
@NativeType("ALvoid")
public static void alGetSource3f(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") float[] v1, @NativeType("ALfloat *") float[] v2, @NativeType("ALfloat *") float[] v3) {
long __functionAddress = AL.getICD().alGetSource3f;
if (CHECKS) {
check(v1, 1);
check(v2, 1);
check(v3, 1);
}
invokePPPV(__functionAddress, source, param, v1, v2, v3);
}
/** Array version of: {@link #alGetSourcefv GetSourcefv} */
@NativeType("ALvoid")
public static void alGetSourcefv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALfloat *") float[] values) {
long __functionAddress = AL.getICD().alGetSourcefv;
if (CHECKS) {
check(values, 1);
}
invokePV(__functionAddress, source, param, values);
}
/** Array version of: {@link #alGetSourcei GetSourcei} */
@NativeType("ALvoid")
public static void alGetSourcei(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALint *") int[] value) {
long __functionAddress = AL.getICD().alGetSourcei;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, source, param, value);
}
/** Array version of: {@link #alGetSourceiv GetSourceiv} */
@NativeType("ALvoid")
public static void alGetSourceiv(@NativeType("ALuint") int source, @NativeType("ALenum") int param, @NativeType("ALint *") int[] values) {
long __functionAddress = AL.getICD().alGetSourceiv;
if (CHECKS) {
check(values, 1);
}
invokePV(__functionAddress, source, param, values);
}
/** Array version of: {@link #alSourceQueueBuffers SourceQueueBuffers} */
@NativeType("ALvoid")
public static void alSourceQueueBuffers(@NativeType("ALuint") int sourceName, @NativeType("ALuint *") int[] bufferNames) {
long __functionAddress = AL.getICD().alSourceQueueBuffers;
invokePV(__functionAddress, sourceName, bufferNames.length, bufferNames);
}
/** Array version of: {@link #alSourceUnqueueBuffers SourceUnqueueBuffers} */
@NativeType("ALvoid")
public static void alSourceUnqueueBuffers(@NativeType("ALuint") int sourceName, @NativeType("ALuint *") int[] bufferNames) {
long __functionAddress = AL.getICD().alSourceUnqueueBuffers;
invokePV(__functionAddress, sourceName, bufferNames.length, bufferNames);
}
/** Array version of: {@link #alSourcePlayv SourcePlayv} */
@NativeType("ALvoid")
public static void alSourcePlayv(@NativeType("ALuint const *") int[] sources) {
long __functionAddress = AL.getICD().alSourcePlayv;
invokePV(__functionAddress, sources.length, sources);
}
/** Array version of: {@link #alSourcePausev SourcePausev} */
@NativeType("ALvoid")
public static void alSourcePausev(@NativeType("ALuint const *") int[] sources) {
long __functionAddress = AL.getICD().alSourcePausev;
invokePV(__functionAddress, sources.length, sources);
}
/** Array version of: {@link #alSourceStopv SourceStopv} */
@NativeType("ALvoid")
public static void alSourceStopv(@NativeType("ALuint const *") int[] sources) {
long __functionAddress = AL.getICD().alSourceStopv;
invokePV(__functionAddress, sources.length, sources);
}
/** Array version of: {@link #alSourceRewindv SourceRewindv} */
@NativeType("ALvoid")
public static void alSourceRewindv(@NativeType("ALuint const *") int[] sources) {
long __functionAddress = AL.getICD().alSourceRewindv;
invokePV(__functionAddress, sources.length, sources);
}
/** Array version of: {@link #alGenBuffers GenBuffers} */
@NativeType("ALvoid")
public static void alGenBuffers(@NativeType("ALuint *") int[] bufferNames) {
long __functionAddress = AL.getICD().alGenBuffers;
invokePV(__functionAddress, bufferNames.length, bufferNames);
}
/** Array version of: {@link #alDeleteBuffers DeleteBuffers} */
@NativeType("ALvoid")
public static void alDeleteBuffers(@NativeType("ALuint const *") int[] bufferNames) {
long __functionAddress = AL.getICD().alDeleteBuffers;
invokePV(__functionAddress, bufferNames.length, bufferNames);
}
/** Array version of: {@link #alGetBufferf GetBufferf} */
@NativeType("ALvoid")
public static void alGetBufferf(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName, @NativeType("ALfloat *") float[] value) {
long __functionAddress = AL.getICD().alGetBufferf;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, bufferName, paramName, value);
}
/** Array version of: {@link #alGetBufferi GetBufferi} */
@NativeType("ALvoid")
public static void alGetBufferi(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int paramName, @NativeType("ALint *") int[] value) {
long __functionAddress = AL.getICD().alGetBufferi;
if (CHECKS) {
check(value, 1);
}
invokePV(__functionAddress, bufferName, paramName, value);
}
/** Array version of: {@link #alBufferData BufferData} */
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") short[] data, @NativeType("ALsizei") int frequency) {
long __functionAddress = AL.getICD().alBufferData;
invokePV(__functionAddress, bufferName, format, data, data.length << 1, frequency);
}
/** Array version of: {@link #alBufferData BufferData} */
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") int[] data, @NativeType("ALsizei") int frequency) {
long __functionAddress = AL.getICD().alBufferData;
invokePV(__functionAddress, bufferName, format, data, data.length << 2, frequency);
}
/** Array version of: {@link #alBufferData BufferData} */
@NativeType("ALvoid")
public static void alBufferData(@NativeType("ALuint") int bufferName, @NativeType("ALenum") int format, @NativeType("ALvoid const *") float[] data, @NativeType("ALsizei") int frequency) {
long __functionAddress = AL.getICD().alBufferData;
invokePV(__functionAddress, bufferName, format, data, data.length << 2, frequency);
}
}