Package org.lwjgl.fmod
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 org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
channelmask
(int value) Sets the specified value to thechannelmask
field.int
channelorder
(int value) Sets the specified value to thechannelorder
field.int
channels()
channels
(int value) Sets the specified value to thechannels
field.int
format()
format
(int value) Sets the specified value to theformat
field.int
frequency
(int value) Sets the specified value to thefrequency
field.int
lengthbytes
(int value) Sets the specified value to thelengthbytes
field.int
lengthpcm
(int value) Sets the specified value to thelengthpcm
field.int
loopend()
loopend
(int value) Sets the specified value to theloopend
field.int
loopstart
(int value) Sets the specified value to theloopstart
field.int
mode()
mode
(int value) Sets the specified value to themode
field.@Nullable ByteBuffer
name()
name
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thename
field.@Nullable String
int
pcmblocksize
(int value) Sets the specified value to thepcmblocksize
field.float
peakvolume
(float value) Sets the specified value to thepeakvolume
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newFMOD_CODEC_WAVEFORMAT.Buffer
instance 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
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
channels
public int channels()- Returns:
- the value of the
channels
field.
-
frequency
public int frequency()- Returns:
- the value of the
frequency
field.
-
lengthbytes
public int lengthbytes()- Returns:
- the value of the
lengthbytes
field.
-
lengthpcm
public int lengthpcm()- Returns:
- the value of the
lengthpcm
field.
-
pcmblocksize
public int pcmblocksize()- Returns:
- the value of the
pcmblocksize
field.
-
loopstart
public int loopstart()- Returns:
- the value of the
loopstart
field.
-
loopend
public int loopend()- Returns:
- the value of the
loopend
field.
-
mode
public int mode()- Returns:
- the value of the
mode
field.
-
channelmask
public int channelmask()- Returns:
- the value of the
channelmask
field.
-
channelorder
public int channelorder()- Returns:
- the value of the
channelorder
field.
-
peakvolume
public float peakvolume()- Returns:
- the value of the
peakvolume
field.
-
name
Sets the address of the specified encoded string to thename
field. -
format
Sets the specified value to theformat
field. -
channels
Sets the specified value to thechannels
field. -
frequency
Sets the specified value to thefrequency
field. -
lengthbytes
Sets the specified value to thelengthbytes
field. -
lengthpcm
Sets the specified value to thelengthpcm
field. -
pcmblocksize
Sets the specified value to thepcmblocksize
field. -
loopstart
Sets the specified value to theloopstart
field. -
loopend
Sets the specified value to theloopend
field. -
mode
Sets the specified value to themode
field. -
channelmask
Sets the specified value to thechannelmask
field. -
channelorder
Sets the specified value to thechannelorder
field. -
peakvolume
Sets the specified value to thepeakvolume
field.
-