Class FMOD_CODEC_WAVEFORMAT.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<FMOD_CODEC_WAVEFORMAT.Buffer>
org.lwjgl.system.StructBuffer<FMOD_CODEC_WAVEFORMAT, FMOD_CODEC_WAVEFORMAT.Buffer>
org.lwjgl.fmod.FMOD_CODEC_WAVEFORMAT.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<FMOD_CODEC_WAVEFORMAT>, NativeResource, Pointer
- Enclosing class:
FMOD_CODEC_WAVEFORMAT
public static class FMOD_CODEC_WAVEFORMAT.Buffer
extends StructBuffer<FMOD_CODEC_WAVEFORMAT, FMOD_CODEC_WAVEFORMAT.Buffer>
implements NativeResource
An array of
FMOD_CODEC_WAVEFORMAT structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newFMOD_CODEC_WAVEFORMAT.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintchannelmask(int value) Sets the specified value to thechannelmaskfield.intchannelorder(int value) Sets the specified value to thechannelorderfield.intchannels()channels(int value) Sets the specified value to thechannelsfield.intformat()format(int value) Sets the specified value to theformatfield.intfrequency(int value) Sets the specified value to thefrequencyfield.intlengthbytes(int value) Sets the specified value to thelengthbytesfield.intlengthpcm(int value) Sets the specified value to thelengthpcmfield.intloopend()loopend(int value) Sets the specified value to theloopendfield.intloopstart(int value) Sets the specified value to theloopstartfield.intmode()mode(int value) Sets the specified value to themodefield.@Nullable ByteBuffername()name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thenamefield.@Nullable Stringintpcmblocksize(int value) Sets the specified value to thepcmblocksizefield.floatpeakvolume(float value) Sets the specified value to thepeakvolumefield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newFMOD_CODEC_WAVEFORMAT.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
FMOD_CODEC_WAVEFORMAT.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
format
- Returns:
- the value of the
formatfield.
-
channels
public int channels()- Returns:
- the value of the
channelsfield.
-
frequency
public int frequency()- Returns:
- the value of the
frequencyfield.
-
lengthbytes
- Returns:
- the value of the
lengthbytesfield.
-
lengthpcm
- Returns:
- the value of the
lengthpcmfield.
-
pcmblocksize
- Returns:
- the value of the
pcmblocksizefield.
-
loopstart
public int loopstart()- Returns:
- the value of the
loopstartfield.
-
loopend
public int loopend()- Returns:
- the value of the
loopendfield.
-
mode
- Returns:
- the value of the
modefield.
-
channelmask
- Returns:
- the value of the
channelmaskfield.
-
channelorder
- Returns:
- the value of the
channelorderfield.
-
peakvolume
public float peakvolume()- Returns:
- the value of the
peakvolumefield.
-
name
Sets the address of the specified encoded string to thenamefield. -
format
Sets the specified value to theformatfield. -
channels
Sets the specified value to thechannelsfield. -
frequency
Sets the specified value to thefrequencyfield. -
lengthbytes
Sets the specified value to thelengthbytesfield. -
lengthpcm
Sets the specified value to thelengthpcmfield. -
pcmblocksize
Sets the specified value to thepcmblocksizefield. -
loopstart
Sets the specified value to theloopstartfield. -
loopend
Sets the specified value to theloopendfield. -
mode
Sets the specified value to themodefield. -
channelmask
Sets the specified value to thechannelmaskfield. -
channelorder
Sets the specified value to thechannelorderfield. -
peakvolume
Sets the specified value to thepeakvolumefield.
-