Package org.lwjgl.openal
Class AL11
java.lang.Object
org.lwjgl.openal.AL11
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 <brian@matzon.dk>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Source buffer position information in bytesstatic final int
Speed of Sound in units per secondstatic final int
Speed of Sound in units per secondstatic final int
static final int
Speed of Sound in units per secondstatic final int
Speed of Sound in units per secondstatic final int
Source buffer position information in samplesstatic final int
Source buffer position information in secondsstatic final int
Speed of Sound in units per secondstatic final int
Type of source: Buffer has been attached using AL_BUFFERstatic final int
Type of source: if one or more Buffers have been attached using alSourceQueueBuffersstatic final int
Type of source: when it has the NULL buffer attached -
Method Summary
Modifier and TypeMethodDescriptionstatic void
alBuffer
(int buffer, int pname, FloatBuffer value) This function sets a floating point property of a buffer.static void
This function sets an integer property of a buffer.static void
alBuffer3f
(int buffer, int pname, float v1, float v2, float v3) This function sets a floating point property of a buffer.static void
alBuffer3i
(int buffer, int pname, int v1, int v2, int v3) This function sets an integer property of a buffer.static void
alBufferf
(int buffer, int pname, float value) This function sets a floating point property of a buffer.static void
alBufferi
(int buffer, int pname, int value) This function sets an integer property of a buffer.static void
alGetBuffer
(int buffer, int pname, FloatBuffer values) This function retrieves a floating point property of a buffer.static void
alGetBuffer
(int buffer, int pname, IntBuffer values) This function retrieves an integer property of a buffer.static float
alGetBufferf
(int buffer, int pname) This function retrieves a floating point property of a buffer.static int
alGetBufferi
(int buffer, int pname) This function retrieves an integer property of a buffer.static void
alGetListeneri
(int pname, FloatBuffer intdata) Listener state is maintained inside the AL implementation and can be queried in full.static void
alListener3i
(int pname, int v1, int v2, int v3) Listener attributes are changed using the Listener group of commands.static void
Specifies the position and other properties as taken into account during sound processing.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.static void
alSpeedOfSound
(float value) AL_SPEED_OF_SOUND allows the application to change the reference (propagation) speed used in the Doppler calculation.
-
Field Details
-
AL_SEC_OFFSET
public static final int AL_SEC_OFFSETSource buffer position information in seconds- See Also:
-
AL_SAMPLE_OFFSET
public static final int AL_SAMPLE_OFFSETSource buffer position information in samples- See Also:
-
AL_BYTE_OFFSET
public static final int AL_BYTE_OFFSETSource buffer position information in bytes- See Also:
-
AL_STATIC
public static final int AL_STATICType of source: Buffer has been attached using AL_BUFFER- See Also:
-
AL_STREAMING
public static final int AL_STREAMINGType of source: if one or more Buffers have been attached using alSourceQueueBuffers- See Also:
-
AL_UNDETERMINED
public static final int AL_UNDETERMINEDType of source: when it has the NULL buffer attached- See Also:
-
AL_ILLEGAL_COMMAND
public static final int AL_ILLEGAL_COMMAND -
AL_SPEED_OF_SOUND
public static final int AL_SPEED_OF_SOUNDSpeed of Sound in units per second- See Also:
-
AL_LINEAR_DISTANCE
public static final int AL_LINEAR_DISTANCESpeed of Sound in units per second- See Also:
-
AL_LINEAR_DISTANCE_CLAMPED
public static final int AL_LINEAR_DISTANCE_CLAMPEDSpeed of Sound in units per second- See Also:
-
AL_EXPONENT_DISTANCE
public static final int AL_EXPONENT_DISTANCESpeed of Sound in units per second- See Also:
-
AL_EXPONENT_DISTANCE_CLAMPED
public static final int AL_EXPONENT_DISTANCE_CLAMPEDSpeed of Sound in units per second- See Also:
-
-
Method Details
-
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
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
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
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
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
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
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
-