Top Description Fields Constructors Methods
org.lwjgl.openal

public final Class AL11

extends Object
Class Inheritance
Imports
org.lwjgl.*, java.nio.*


This is the core OpenAL class. This class implements AL.h version 1.1

Author
Brian Matzon
Version
$Revision: 2286 $ $Id: AL10.java 2286 2006-03-23 19:32:21Z matzon $

Field Summary

Modifier and TypeField and Description
public static final int
AL_BYTE_OFFSET

Source buffer position information in bytes

public static final int
AL_EXPONENT_DISTANCE

Speed of Sound in units per second

public static final int
AL_EXPONENT_DISTANCE_CLAMPED

Speed of Sound in units per second

public static final int
public static final int
AL_LINEAR_DISTANCE

Speed of Sound in units per second

public static final int
AL_LINEAR_DISTANCE_CLAMPED

Speed of Sound in units per second

public static final int
AL_SAMPLE_OFFSET

Source buffer position information in samples

public static final int
AL_SEC_OFFSET

Source buffer position information in seconds

public static final int
AL_SPEED_OF_SOUND

Speed of Sound in units per second

public static final int
AL_STATIC

Type of source: Buffer has been attached using AL_BUFFER

public static final int
AL_STREAMING

Type of source: if one or more Buffers have been attached using alSourceQueueBuffers

public static final int
AL_UNDETERMINED

Type of source: when it has the NULL buffer attached

Constructor Summary

AccessConstructor and Description
private
AL11()

Method Summary

Modifier and TypeMethod and Description
public static void
alBuffer(int
Buffer to set property on
buffer
,
int
property to set
pname
,
FloatBuffer
FloatBuffer containing value of property
value
)

This function sets a floating point property of a buffer.

public static void
alBuffer(int
Buffer to set property on
buffer
,
int
property to set
pname
,
IntBuffer
IntBuffer containing value of property
value
)

This function sets an integer property of a buffer.

public static void
alBuffer3f(int
Buffer to set property on
buffer
,
int
property to set
pname
,
float
value of property
v1
,
float
value of property
v2
,
float
value of property
v3
)

This function sets a floating point property of a buffer.

public static void
alBuffer3i(int
Buffer to set property on
buffer
,
int
property to set
pname
,
int
value of property
v1
,
int
value of property
v2
,
int
value of property
v3
)

This function sets an integer property of a buffer.

public static void
alBufferf(int
Buffer to set property on
buffer
,
int
property to set
pname
,
float
value of property
value
)

This function sets a floating point property of a buffer.

public static void
alBufferi(int
Buffer to set property on
buffer
,
int
property to set
pname
,
int
value of property
value
)

This function sets an integer property of a buffer.

public static void
alGetBuffer(int
Buffer to get property from
buffer
,
int
name of property
pname
,
IntBuffer values)

This function retrieves an integer property of a buffer.

public static void
alGetBuffer(int
Buffer to get property from
buffer
,
int
name of property
pname
,
FloatBuffer values)

This function retrieves a floating point property of a buffer.

public static float

Returns:

floating point property
alGetBufferf
(int
Buffer to get property from
buffer
,
int
name of property
pname
)

This function retrieves a floating point property of a buffer.

public static int

Returns:

int
alGetBufferi
(int
Buffer to get property from
buffer
,
int
name of property
pname
)

This function retrieves an integer property of a buffer.

public static void
alGetListeneri(int
name of the attribute to be retrieved
pname
,
FloatBuffer
Buffer to write ints to
intdata
)

Listener state is maintained inside the AL implementation and can be queried in full.

public static void
alListener3i(int
name of the attribute to be set
pname
,
int
value value 1
v1
,
int
value value 2
v2
,
int
value value 3
v3
)

Listener attributes are changed using the Listener group of commands.

public static void
alSource(int
Source to set property on
source
,
int
property to set
pname
,
IntBuffer
IntBuffer containing value of property
value
)

Specifies the position and other properties as taken into account during sound processing.

public static void
alSource3i(int
Source to set property on
source
,
int
property to set
pname
,
int
value 1 of property
v1
,
int
value 2 of property
v2
,
int
value 3 of property
v3
)

Specifies the position and other properties as taken into account during sound processing.

public static void
alSpeedOfSound(float
distance model to be set
value
)

AL_SPEED_OF_SOUND allows the application to change the reference (propagation) speed used in the Doppler calculation.

pack-priv static native void
pack-priv static native void
nalBuffer3f(int buffer, int pname, float v1, float v2, float v3)

pack-priv static native void
nalBuffer3i(int buffer, int pname, int v1, int v2, int v3)

pack-priv static native void
nalBufferf(int buffer, int pname, float value)

pack-priv static native void
nalBufferfv(int buffer, int pname, long value)

pack-priv static native void
nalBufferi(int buffer, int pname, int value)

pack-priv static native void
nalBufferiv(int buffer, int pname, long value)

pack-priv static native float
nalGetBufferf(int buffer, int pname)

pack-priv static native void
nalGetBufferfv(int buffer, int pname, long values)

pack-priv static native int
nalGetBufferi(int buffer, int pname)

pack-priv static native void
nalGetBufferiv(int buffer, int pname, long values)

pack-priv static native void
nalGetListeneriv(int pname, long intdata)

pack-priv static native void
nalListener3i(int pname, int v1, int v2, int v3)

pack-priv static native void
nalSource3i(int source, int pname, int v1, int v2, int v3)

pack-priv static native void
nalSourceiv(int source, int pname, long value)

pack-priv static native void
nalSpeedOfSound(float value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AL_BYTE_OFFSETback to summary
public static final int AL_BYTE_OFFSET

Source buffer position information in bytes

AL_EXPONENT_DISTANCEback to summary
public static final int AL_EXPONENT_DISTANCE

Speed of Sound in units per second

AL_EXPONENT_DISTANCE_CLAMPEDback to summary
public static final int AL_EXPONENT_DISTANCE_CLAMPED

Speed of Sound in units per second

AL_ILLEGAL_COMMANDback to summary
public static final int AL_ILLEGAL_COMMAND
See Also
AL10#AL_INVALID_OPERATION
AL_LINEAR_DISTANCEback to summary
public static final int AL_LINEAR_DISTANCE

Speed of Sound in units per second

AL_LINEAR_DISTANCE_CLAMPEDback to summary
public static final int AL_LINEAR_DISTANCE_CLAMPED

Speed of Sound in units per second

AL_SAMPLE_OFFSETback to summary
public static final int AL_SAMPLE_OFFSET

Source buffer position information in samples

AL_SEC_OFFSETback to summary
public static final int AL_SEC_OFFSET

Source buffer position information in seconds

AL_SPEED_OF_SOUNDback to summary
public static final int AL_SPEED_OF_SOUND

Speed of Sound in units per second

AL_STATICback to summary
public static final int AL_STATIC

Type of source: Buffer has been attached using AL_BUFFER

AL_STREAMINGback to summary
public static final int AL_STREAMING

Type of source: if one or more Buffers have been attached using alSourceQueueBuffers

AL_UNDETERMINEDback to summary
public static final int AL_UNDETERMINED

Type of source: when it has the NULL buffer attached

Constructor Detail

AL11back to summary
private AL11()

Method Detail

alBufferback to summary
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:int

Buffer to set property on

pname:int

property to set

value:FloatBuffer

FloatBuffer containing value of property

alBufferback to summary
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:int

Buffer to set property on

pname:int

property to set

value:IntBuffer

IntBuffer containing value of property

alBuffer3fback to summary
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:int

Buffer to set property on

pname:int

property to set

v1:float

value of property

v2:float

value of property

v3:float

value of property

alBuffer3iback to summary
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:int

Buffer to set property on

pname:int

property to set

v1:int

value of property

v2:int

value of property

v3:int

value of property

alBufferfback to summary
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:int

Buffer to set property on

pname:int

property to set

value:float

value of property

alBufferiback to summary
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:int

Buffer to set property on

pname:int

property to set

value:int

value of property

alGetBufferback to summary
public static void alGetBuffer(int buffer, int pname, IntBuffer values)

This function retrieves an integer property of a buffer.

Parameters
buffer:int

Buffer to get property from

pname:int

name of property

alGetBufferback to summary
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:int

Buffer to get property from

pname:int

name of property

alGetBufferfback to summary
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:int

Buffer to get property from

pname:int

name of property

Returns:float

floating point property

alGetBufferiback to summary
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:int

Buffer to get property from

pname:int

name of property

Returns:int

int

alGetListeneriback to summary
public static void alGetListeneri(int pname, FloatBuffer intdata)

Listener state is maintained inside the AL implementation and can be queried in full.

Parameters
pname:int

name of the attribute to be retrieved

intdata:FloatBuffer

Buffer to write ints to

alListener3iback to summary
public static void alListener3i(int pname, int v1, int v2, int v3)

Listener attributes are changed using the Listener group of commands.

Parameters
pname:int

name of the attribute to be set

v1:int

value value 1

v2:int

value value 2

v3:int

value value 3

alSourceback to summary
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:int

Source to set property on

pname:int

property to set

value:IntBuffer

IntBuffer containing value of property

alSource3iback to summary
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:int

Source to set property on

pname:int

property to set

v1:int

value 1 of property

v2:int

value 2 of property

v3:int

value 3 of property

alSpeedOfSoundback to summary
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:float

distance model to be set

initNativeStubsback to summary
pack-priv static native void initNativeStubs() throws LWJGLException
nalBuffer3fback to summary
pack-priv static native void nalBuffer3f(int buffer, int pname, float v1, float v2, float v3)
nalBuffer3iback to summary
pack-priv static native void nalBuffer3i(int buffer, int pname, int v1, int v2, int v3)
nalBufferfback to summary
pack-priv static native void nalBufferf(int buffer, int pname, float value)
nalBufferfvback to summary
pack-priv static native void nalBufferfv(int buffer, int pname, long value)
nalBufferiback to summary
pack-priv static native void nalBufferi(int buffer, int pname, int value)
nalBufferivback to summary
pack-priv static native void nalBufferiv(int buffer, int pname, long value)
nalGetBufferfback to summary
pack-priv static native float nalGetBufferf(int buffer, int pname)
nalGetBufferfvback to summary
pack-priv static native void nalGetBufferfv(int buffer, int pname, long values)
nalGetBufferiback to summary
pack-priv static native int nalGetBufferi(int buffer, int pname)
nalGetBufferivback to summary
pack-priv static native void nalGetBufferiv(int buffer, int pname, long values)
nalGetListenerivback to summary
pack-priv static native void nalGetListeneriv(int pname, long intdata)
nalListener3iback to summary
pack-priv static native void nalListener3i(int pname, int v1, int v2, int v3)
nalSource3iback to summary
pack-priv static native void nalSource3i(int source, int pname, int v1, int v2, int v3)
nalSourceivback to summary
pack-priv static native void nalSourceiv(int source, int pname, long value)
nalSpeedOfSoundback to summary
pack-priv static native void nalSpeedOfSound(float value)