Top Description Constructors Methods
org.lwjgl.openal

public Class EXTStaticBuffer

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

Native bindings to the AL_EXT_STATIC_BUFFER extension.

This extension provides a means for the caller to avoid the overhead associated with the BufferData call which performs a physical copy of the data provided by the caller to internal buffers. When using the AL_EXT_STATIC_BUFFER extension, OpenAL's internal buffers use the data pointer provided by the caller for all data access.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
alBufferDataStatic(int
the buffer handle
buffer
,
int
the data format
format
,
ByteBuffer
the sample data
data
,
int
the data frequency
freq
)

Sets the sample data of the specified buffer.

public static void
alBufferDataStatic(int
the buffer handle
buffer
,
int
the data format
format
,
ShortBuffer
the sample data
data
,
int
the data frequency
freq
)

Sets the sample data of the specified buffer.

public static void
alBufferDataStatic(int
the buffer handle
buffer
,
int
the data format
format
,
IntBuffer
the sample data
data
,
int
the data frequency
freq
)

Sets the sample data of the specified buffer.

public static void
alBufferDataStatic(int
the buffer handle
buffer
,
int
the data format
format
,
FloatBuffer
the sample data
data
,
int
the data frequency
freq
)

Sets the sample data of the specified buffer.

public static void
alBufferDataStatic(int buffer, int format, short[] data, int freq)

Array version of: BufferDataStatic

public static void
alBufferDataStatic(int buffer, int format, int[] data, int freq)

Array version of: BufferDataStatic

public static void
alBufferDataStatic(int buffer, int format, float[] data, int freq)

Array version of: BufferDataStatic

public static void
nalBufferDataStatic(int buffer, int format, long data, int
the data buffer size, in bytes
len
,
int freq)

Unsafe version of: BufferDataStatic

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EXTStaticBufferback to summary
protected EXTStaticBuffer()

Method Detail

alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, ByteBuffer data, int freq)

Sets the sample data of the specified buffer.

Parameters
buffer:int

the buffer handle

format:int

the data format

data:ByteBuffer

the sample data

freq:int

the data frequency

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, ShortBuffer data, int freq)

Sets the sample data of the specified buffer.

Parameters
buffer:int

the buffer handle

format:int

the data format

data:ShortBuffer

the sample data

freq:int

the data frequency

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, IntBuffer data, int freq)

Sets the sample data of the specified buffer.

Parameters
buffer:int

the buffer handle

format:int

the data format

data:IntBuffer

the sample data

freq:int

the data frequency

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, FloatBuffer data, int freq)

Sets the sample data of the specified buffer.

Parameters
buffer:int

the buffer handle

format:int

the data format

data:FloatBuffer

the sample data

freq:int

the data frequency

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, short[] data, int freq)

Array version of: BufferDataStatic

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, int[] data, int freq)

Array version of: BufferDataStatic

Annotations
@NativeType:ALvoid
alBufferDataStaticback to summary
public static void alBufferDataStatic(int buffer, int format, float[] data, int freq)

Array version of: BufferDataStatic

Annotations
@NativeType:ALvoid
nalBufferDataStaticback to summary
public static void nalBufferDataStatic(int buffer, int format, long data, int len, int freq)

Unsafe version of: BufferDataStatic

Parameters
len:int

the data buffer size, in bytes