Class EXTStaticBuffer



  • public class EXTStaticBuffer
    extends java.lang.Object
    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 Detail

      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              java.nio.ByteBuffer data,
                                              int freq)
        Sets the sample data of the specified buffer.
        Parameters:
        buffer - the buffer handle
        format - the data format
        data - the sample data
        freq - the data frequency
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              java.nio.ShortBuffer data,
                                              int freq)
        ShortBuffer version of: BufferDataStatic
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              java.nio.IntBuffer data,
                                              int freq)
        IntBuffer version of: BufferDataStatic
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              java.nio.FloatBuffer data,
                                              int freq)
        FloatBuffer version of: BufferDataStatic
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              short[] data,
                                              int freq)
        short[] version of: BufferDataStatic
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              int[] data,
                                              int freq)
        int[] version of: BufferDataStatic
      • alBufferDataStatic

        public static void alBufferDataStatic(int buffer,
                                              int format,
                                              float[] data,
                                              int freq)
        float[] version of: BufferDataStatic