|
JOAL v2.6.0-rc-20250706
JOAL, OpenAL® API Binding for Java (public API).
|
The Sound3D Buffer is a container for audio data used in the Sound3D environment. More...
Public Member Functions | |
| Buffer (final int bufferID) | |
| int | getID () |
| Return the OpenAL buffer ID, -1 if invalid. More... | |
| boolean | isValid () |
Returns whether getID() is valid, i.e. More... | |
| void | delete () |
| Delete this buffer, and free its resources. More... | |
| void | configure (final ByteBuffer data, final int alFormat, final int freq) |
| Configure the Sound3D buffer. More... | |
| int | getBitDepth () |
| Get the bit-depth of the data, (8 or 16) More... | |
| int | getNumChannels () |
| Get the number of channels of the data (1-Mono, 2-Stereo) More... | |
| ByteBuffer | getData () |
| Gets the raw data contained in this buffer. More... | |
| int | getFrequency () |
| Gets the audio frequency of the data contained in this buffer. More... | |
| int | getSize () |
| Gets the size (in bytes) of the raw data containe in this buffer. More... | |
| String | toString () |
Static Public Attributes | |
| static final int | FORMAT_MONO8 = AL.AL_FORMAT_MONO8 |
| static final int | FORMAT_MONO16 = AL.AL_FORMAT_MONO16 |
| static final int | FORMAT_STEREO8 = AL.AL_FORMAT_STEREO8 |
| static final int | FORMAT_STEREO16 = AL.AL_FORMAT_STEREO16 |
The Sound3D Buffer is a container for audio data used in the Sound3D environment.
Definition at line 48 of file Buffer.java.
| com.jogamp.openal.sound3d.Buffer.Buffer | ( | final int | bufferID | ) |
Definition at line 60 of file Buffer.java.
| void com.jogamp.openal.sound3d.Buffer.configure | ( | final ByteBuffer | data, |
| final int | alFormat, | ||
| final int | freq | ||
| ) |
Configure the Sound3D buffer.
| data | the raw audio data |
| alFormat | the OpenAL format of the data, e.g. FORMAT_MONO8, FORMAT_MONO16, FORMAT_STEREO8 and FORMAT_STEREO16 |
| freq | the frequency of the data |
Definition at line 91 of file Buffer.java.
| void com.jogamp.openal.sound3d.Buffer.delete | ( | ) |
Delete this buffer, and free its resources.
Definition at line 75 of file Buffer.java.
| int com.jogamp.openal.sound3d.Buffer.getBitDepth | ( | ) |
Get the bit-depth of the data, (8 or 16)
Definition at line 101 of file Buffer.java.
| ByteBuffer com.jogamp.openal.sound3d.Buffer.getData | ( | ) |
Gets the raw data contained in this buffer.
Definition at line 125 of file Buffer.java.
| int com.jogamp.openal.sound3d.Buffer.getFrequency | ( | ) |
Gets the audio frequency of the data contained in this buffer.
Definition at line 134 of file Buffer.java.
| int com.jogamp.openal.sound3d.Buffer.getID | ( | ) |
Return the OpenAL buffer ID, -1 if invalid.
Definition at line 65 of file Buffer.java.
| int com.jogamp.openal.sound3d.Buffer.getNumChannels | ( | ) |
Get the number of channels of the data (1-Mono, 2-Stereo)
Definition at line 113 of file Buffer.java.
| int com.jogamp.openal.sound3d.Buffer.getSize | ( | ) |
Gets the size (in bytes) of the raw data containe in this buffer.
Definition at line 146 of file Buffer.java.
| boolean com.jogamp.openal.sound3d.Buffer.isValid | ( | ) |
Returns whether getID() is valid, i.e.
not delete()'ed
Definition at line 68 of file Buffer.java.
| String com.jogamp.openal.sound3d.Buffer.toString | ( | ) |
Definition at line 154 of file Buffer.java.
|
static |
Definition at line 51 of file Buffer.java.
|
static |
Definition at line 49 of file Buffer.java.
|
static |
Definition at line 55 of file Buffer.java.
|
static |
Definition at line 53 of file Buffer.java.