Package org.lwjgl.openal
Class AL11
- java.lang.Object
-
- org.lwjgl.openal.AL11
-
public final class AL11 extends Object
This is the core OpenAL class. This class implements AL.h version 1.1- Version:
- $Revision: 2286 $ $Id: AL10.java 2286 2006-03-23 19:32:21Z matzon $
- Author:
- Brian Matzon
-
-
Field Summary
Fields Modifier and Type Field Description static intAL_BYTE_OFFSETSource buffer position information in bytesstatic intAL_EXPONENT_DISTANCESpeed of Sound in units per secondstatic intAL_EXPONENT_DISTANCE_CLAMPEDSpeed of Sound in units per secondstatic intAL_ILLEGAL_COMMANDstatic intAL_LINEAR_DISTANCESpeed of Sound in units per secondstatic intAL_LINEAR_DISTANCE_CLAMPEDSpeed of Sound in units per secondstatic intAL_SAMPLE_OFFSETSource buffer position information in samplesstatic intAL_SEC_OFFSETSource buffer position information in secondsstatic intAL_SPEED_OF_SOUNDSpeed of Sound in units per secondstatic intAL_STATICType of source: Buffer has been attached using AL_BUFFERstatic intAL_STREAMINGType of source: if one or more Buffers have been attached using alSourceQueueBuffersstatic intAL_UNDETERMINEDType of source: when it has the NULL buffer attached
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidalBuffer(int buffer, int pname, FloatBuffer value)This function sets a floating point property of a buffer.static voidalBuffer(int buffer, int pname, IntBuffer value)This function sets an integer property of a buffer.static voidalBuffer3f(int buffer, int pname, float v1, float v2, float v3)This function sets a floating point property of a buffer.static voidalBuffer3i(int buffer, int pname, int v1, int v2, int v3)This function sets an integer property of a buffer.static voidalBufferf(int buffer, int pname, float value)This function sets a floating point property of a buffer.static voidalBufferi(int buffer, int pname, int value)This function sets an integer property of a buffer.static voidalGetBuffer(int buffer, int pname, FloatBuffer values)This function retrieves a floating point property of a buffer.static voidalGetBuffer(int buffer, int pname, IntBuffer values)This function retrieves an integer property of a buffer.static floatalGetBufferf(int buffer, int pname)This function retrieves a floating point property of a buffer.static intalGetBufferi(int buffer, int pname)This function retrieves an integer property of a buffer.static voidalGetListeneri(int pname, FloatBuffer intdata)Listener state is maintained inside the AL implementation and can be queried in full.static voidalListener3i(int pname, int v1, int v2, int v3)Listener attributes are changed using the Listener group of commands.static voidalSource(int source, int pname, IntBuffer value)Specifies the position and other properties as taken into account during sound processing.static voidalSource3i(int source, int pname, int v1, int v2, int v3)Specifies the position and other properties as taken into account during sound processing.static voidalSpeedOfSound(float value)AL_SPEED_OF_SOUND allows the application to change the reference (propagation) speed used in the Doppler calculation.
-
-
-
Field Detail
-
AL_SEC_OFFSET
public static final int AL_SEC_OFFSET
Source buffer position information in seconds- See Also:
- Constant Field Values
-
AL_SAMPLE_OFFSET
public static final int AL_SAMPLE_OFFSET
Source buffer position information in samples- See Also:
- Constant Field Values
-
AL_BYTE_OFFSET
public static final int AL_BYTE_OFFSET
Source buffer position information in bytes- See Also:
- Constant Field Values
-
AL_STATIC
public static final int AL_STATIC
Type of source: Buffer has been attached using AL_BUFFER- See Also:
- Constant Field Values
-
AL_STREAMING
public static final int AL_STREAMING
Type of source: if one or more Buffers have been attached using alSourceQueueBuffers- See Also:
- Constant Field Values
-
AL_UNDETERMINED
public static final int AL_UNDETERMINED
Type of source: when it has the NULL buffer attached- See Also:
- Constant Field Values
-
AL_ILLEGAL_COMMAND
public static final int AL_ILLEGAL_COMMAND
- See Also:
AL10.AL_INVALID_OPERATION, Constant Field Values
-
AL_SPEED_OF_SOUND
public static final int AL_SPEED_OF_SOUND
Speed of Sound in units per second- See Also:
- Constant Field Values
-
AL_LINEAR_DISTANCE
public static final int AL_LINEAR_DISTANCE
Speed of Sound in units per second- See Also:
- Constant Field Values
-
AL_LINEAR_DISTANCE_CLAMPED
public static final int AL_LINEAR_DISTANCE_CLAMPED
Speed of Sound in units per second- See Also:
- Constant Field Values
-
AL_EXPONENT_DISTANCE
public static final int AL_EXPONENT_DISTANCE
Speed of Sound in units per second- See Also:
- Constant Field Values
-
AL_EXPONENT_DISTANCE_CLAMPED
public static final int AL_EXPONENT_DISTANCE_CLAMPED
Speed of Sound in units per second- See Also:
- Constant Field Values
-
-
Method Detail
-
alListener3i
public static void alListener3i(int pname, int v1, int v2, int v3)Listener attributes are changed using the Listener group of commands.- Parameters:
pname- name of the attribute to be setv1- value value 1v2- value value 2v3- value value 3
-
alGetListeneri
public static void alGetListeneri(int pname, FloatBuffer intdata)Listener state is maintained inside the AL implementation and can be queried in full.- Parameters:
pname- name of the attribute to be retrievedintdata- Buffer to write ints to
-
alSource3i
public static void alSource3i(int source, int pname, int v1, int v2, int v3)Specifies the position and other properties as taken into account during sound processing.- Parameters:
source- Source to set property onpname- property to setv1- value 1 of propertyv2- value 2 of propertyv3- value 3 of property
-
alSource
public static void alSource(int source, int pname, IntBuffer value)Specifies the position and other properties as taken into account during sound processing.- Parameters:
source- Source to set property onpname- property to setvalue- IntBuffer containing value of property
-
alBufferf
public static void alBufferf(int buffer, int pname, float value)This function sets a floating point property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setvalue- value of property
-
alBuffer3f
public static void alBuffer3f(int buffer, int pname, float v1, float v2, float v3)This function sets a floating point property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setv1- value of propertyv2- value of propertyv3- value of property
-
alBuffer
public static void alBuffer(int buffer, int pname, FloatBuffer value)This function sets a floating point property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setvalue- FloatBuffer containing value of property
-
alBufferi
public static void alBufferi(int buffer, int pname, int value)This function sets an integer property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setvalue- value of property
-
alBuffer3i
public static void alBuffer3i(int buffer, int pname, int v1, int v2, int v3)This function sets an integer property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setv1- value of propertyv2- value of propertyv3- value of property
-
alBuffer
public static void alBuffer(int buffer, int pname, IntBuffer value)This function sets an integer property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to set property onpname- property to setvalue- IntBuffer containing value of property
-
alGetBufferi
public static int alGetBufferi(int buffer, int pname)This function retrieves an integer property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to get property frompname- name of property- Returns:
- int
-
alGetBuffer
public static void alGetBuffer(int buffer, int pname, IntBuffer values)This function retrieves an integer property of a buffer.- Parameters:
buffer- Buffer to get property frompname- name of property
-
alGetBufferf
public static float alGetBufferf(int buffer, int pname)This function retrieves a floating point property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to get property frompname- name of property- Returns:
- floating point property
-
alGetBuffer
public static void alGetBuffer(int buffer, int pname, FloatBuffer values)This function retrieves a floating point property of a buffer. note: There are no relevant buffer properties defined in OpenAL 1.1 which can be affected by this call, but this function may be used by OpenAL extensions.- Parameters:
buffer- Buffer to get property frompname- name of property
-
alSpeedOfSound
public static void alSpeedOfSound(float value)
AL_SPEED_OF_SOUND allows the application to change the reference (propagation) speed used in the Doppler calculation. The source and listener velocities should be expressed in the same units as the speed of sound.
A negative or zero value will result in an AL_INVALID_VALUE error, and the command is ignored. The default value is 343.3 (appropriate for velocity units of meters and air as the propagation medium). The current setting can be queried using alGetFloat{v} and AL_SPEED_OF_SOUND. Distance and velocity units are completely independent of one another (so you could use different units for each if desired).
- Parameters:
value- distance model to be set
-
-