Package org.lwjgl.openal
Class EXTStaticBuffer
java.lang.Object
org.lwjgl.openal.EXTStaticBuffer
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
alBufferDataStatic
(int buffer, int format, float[] data, int freq) Array version of:BufferDataStatic
static void
alBufferDataStatic
(int buffer, int format, int[] data, int freq) Array version of:BufferDataStatic
static void
alBufferDataStatic
(int buffer, int format, short[] data, int freq) Array version of:BufferDataStatic
static void
alBufferDataStatic
(int buffer, int format, ByteBuffer data, int freq) Sets the sample data of the specified buffer.static void
alBufferDataStatic
(int buffer, int format, FloatBuffer data, int freq) Sets the sample data of the specified buffer.static void
alBufferDataStatic
(int buffer, int format, IntBuffer data, int freq) Sets the sample data of the specified buffer.static void
alBufferDataStatic
(int buffer, int format, ShortBuffer data, int freq) Sets the sample data of the specified buffer.static void
nalBufferDataStatic
(int buffer, int format, long data, int len, int freq) Unsafe version of:BufferDataStatic
-
Method Details
-
nalBufferDataStatic
public static void nalBufferDataStatic(int buffer, int format, long data, int len, int freq) Unsafe version of:BufferDataStatic
- Parameters:
len
- the data buffer size, in bytes
-
alBufferDataStatic
Sets the sample data of the specified buffer.- Parameters:
buffer
- the buffer handleformat
- the data formatdata
- the sample datafreq
- the data frequency
-
alBufferDataStatic
Sets the sample data of the specified buffer.- Parameters:
buffer
- the buffer handleformat
- the data formatdata
- the sample datafreq
- the data frequency
-
alBufferDataStatic
Sets the sample data of the specified buffer.- Parameters:
buffer
- the buffer handleformat
- the data formatdata
- the sample datafreq
- the data frequency
-
alBufferDataStatic
Sets the sample data of the specified buffer.- Parameters:
buffer
- the buffer handleformat
- the data formatdata
- the sample datafreq
- the data frequency
-
alBufferDataStatic
public static void alBufferDataStatic(int buffer, int format, short[] data, int freq) Array version of:BufferDataStatic
-
alBufferDataStatic
public static void alBufferDataStatic(int buffer, int format, int[] data, int freq) Array version of:BufferDataStatic
-
alBufferDataStatic
public static void alBufferDataStatic(int buffer, int format, float[] data, int freq) Array version of:BufferDataStatic
-