Top Description Fields Constructors Methods
org.lwjgl.openal

public final Class SOFTSourceLength

extends Object
Class Inheritance

Native bindings to the SOFT_source_length extension.

This extension adds a method to retrieve the total length of a source's buffer data in bytes, samples, and seconds, which correspond to the byte, sample, and seconds offset extents. By default, OpenAL only provides a way to retrieve a buffer's storage size in bytes, which does not necessarily represent the data size given to alBufferData nor the byte offset extent for the source's BYTE_OFFSET property. The AL_SOFT_buffer_samples extension allows an application to query a buffer for its length in bytes, samples, and seconds, but this is only for a single buffer; a buffer queue on a source still requires additional bookkeeping by the application to keep track of the length of each buffer being queued and unqueued on a given source. This extension aims to ease that and provide a simple query.

Field Summary

Modifier and TypeField and Description
public static final int
AL_BYTE_LENGTH_SOFT

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

public static final int
AL_SAMPLE_LENGTH_SOFT

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

public static final int
AL_SEC_LENGTH_SOFT

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AL_BYTE_LENGTH_SOFTback to summary
public static final int AL_BYTE_LENGTH_SOFT

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

AL_SAMPLE_LENGTH_SOFTback to summary
public static final int AL_SAMPLE_LENGTH_SOFT

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

AL_SEC_LENGTH_SOFTback to summary
public static final int AL_SEC_LENGTH_SOFT

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

Constructor Detail

SOFTSourceLengthback to summary
private SOFTSourceLength()