Top Description Fields Constructors Methods
org.lwjgl.openal

public Class SOFTBufferSamples

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

Native bindings to the SOFT_buffer_samples extension.

This extension provides a more flexible mechanism for loading buffer data, as well as a method to retrieve buffer data. Unextended OpenAL only provides a method to specify a single buffer format when loading data, which defines the data given by the application. The AL is given leeway in converting the data, so that it is possible or more efficient to use internally. However, there are some drawbacks to this approach:

If the application could specify the internal storage format, as well as use a separate format to specify the incoming data's format, it would allow to add more input formats (signed 8-bit, 32-bit int, and float, for example), with no undue burden placed on the implementation beyond needing some conversion routines. The application can then be assured that many different formats can be loaded, even if storage is restricted to a comparatively small subset.

In addition, unextended OpenAL does not have any methods for updating only a portion of a buffer, nor a method to retrieve the data from a buffer.

Field Summary

Modifier and TypeField and Description
public static final int
AL_5POINT1_16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_5POINT1_32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_5POINT1_8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_5POINT1_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
AL_6POINT1_16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_6POINT1_32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_6POINT1_8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_6POINT1_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
AL_7POINT1_16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_7POINT1_32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_7POINT1_8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_7POINT1_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
public static final int
AL_BYTE_LENGTH_SOFT

Accepted by the paramName parameter of GetBufferi and GetBufferiv.

public static final int
AL_BYTE_RW_OFFSETS_SOFT

Accepted by the paramName parameter of GetSourceiv and GetSourcefv (these are the same as in SOFT_buffer_sub_data).

public static final int
public static final int
public static final int
public static final int
public static final int
AL_INTERNAL_FORMAT_SOFT

Accepted by the paramName parameter of GetBufferi and GetBufferiv.

public static final int
AL_MONO16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_MONO32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_MONO8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_MONO_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
AL_QUAD16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_QUAD32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_QUAD8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_QUAD_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
AL_REAR16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_REAR32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_REAR8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_REAR_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
AL_SAMPLE_LENGTH_SOFT

Accepted by the paramName parameter of GetBufferi and GetBufferiv.

public static final int
AL_SAMPLE_RW_OFFSETS_SOFT

Accepted by the paramName parameter of GetSourceiv and GetSourcefv (these are the same as in SOFT_buffer_sub_data).

public static final int
AL_SEC_LENGTH_SOFT

Accepted by the paramName parameter of GetBufferf and GetBufferfv.

public static final int
public static final int
AL_STEREO16_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_STEREO32F_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_STEREO8_SOFT

Accepted by the internalformat parameter of BufferSamplesSOFT (values are shared with standard OpenAL, EXT_FLOAT32, and EXT_MCFORMATS).

public static final int
AL_STEREO_SOFT

Accepted by the channels parameter of BufferSamplesSOFT, BufferSubSamplesSOFT, and GetBufferSamplesSOFT.

public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
public static void
public static void
public static void
public static void
alBufferSamplesSOFT(int buffer, int samplerate, int internalformat, int samples, int channels, int type, short[] data)

Array version of: BufferSamplesSOFT

public static void
alBufferSamplesSOFT(int buffer, int samplerate, int internalformat, int samples, int channels, int type, int[] data)

Array version of: BufferSamplesSOFT

public static void
alBufferSamplesSOFT(int buffer, int samplerate, int internalformat, int samples, int channels, int type, float[] data)

Array version of: BufferSamplesSOFT

public static void
alBufferSamplesSOFT(int buffer, int samplerate, int internalformat, int samples, int channels, int type, double[] data)

Array version of: BufferSamplesSOFT

public static void
public static void
public static void
public static void
public static void
public static void
alBufferSubSamplesSOFT(int buffer, int offset, int samples, int channels, int type, short[] data)

Array version of: BufferSubSamplesSOFT

public static void
alBufferSubSamplesSOFT(int buffer, int offset, int samples, int channels, int type, int[] data)

Array version of: BufferSubSamplesSOFT

public static void
alBufferSubSamplesSOFT(int buffer, int offset, int samples, int channels, int type, float[] data)

Array version of: BufferSubSamplesSOFT

public static void
alBufferSubSamplesSOFT(int buffer, int offset, int samples, int channels, int type, double[] data)

Array version of: BufferSubSamplesSOFT

public static void
public static void
public static void
public static void
public static void
public static void
alGetBufferSamplesSOFT(int buffer, int offset, int samples, int channels, int type, short[] data)

Array version of: GetBufferSamplesSOFT

public static void
alGetBufferSamplesSOFT(int buffer, int offset, int samples, int channels, int type, int[] data)

Array version of: GetBufferSamplesSOFT

public static void
alGetBufferSamplesSOFT(int buffer, int offset, int samples, int channels, int type, float[] data)

Array version of: GetBufferSamplesSOFT

public static void
alGetBufferSamplesSOFT(int buffer, int offset, int samples, int channels, int type, double[] data)

Array version of: GetBufferSamplesSOFT

public static boolean
public static void
nalBufferSamplesSOFT(int buffer, int samplerate, int internalformat, int samples, int channels, int type, long data)

Unsafe version of: BufferSamplesSOFT

public static void
nalBufferSubSamplesSOFT(int buffer, int offset, int samples, int channels, int type, long data)

Unsafe version of: BufferSubSamplesSOFT

public static void
nalGetBufferSamplesSOFT(int buffer, int offset, int samples, int channels, int type, long data)

Unsafe version of: GetBufferSamplesSOFT

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait