Package org.lwjgl.fmod
Class FMOD_CODEC_STATE
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_CODEC_STATE {
void * plugindata;
{@link FMOD_CODEC_WAVEFORMAT struct FMOD_CODEC_WAVEFORMAT} * waveformat;
{@link FMOD_CODEC_STATE_FUNCTIONS FMOD_CODEC_STATE_FUNCTIONS} * functions;
int numsubsounds;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFMOD_CODEC_STATE
(ByteBuffer container) Creates aFMOD_CODEC_STATE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CODEC_STATE
calloc()
Returns a newFMOD_CODEC_STATE
instance allocated withmemCalloc
.static FMOD_CODEC_STATE.Buffer
calloc
(int capacity) Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withmemCalloc
.static FMOD_CODEC_STATE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_STATE
calloc
(MemoryStack stack) Returns a newFMOD_CODEC_STATE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_STATE
create()
Returns a newFMOD_CODEC_STATE
instance allocated withBufferUtils
.static FMOD_CODEC_STATE.Buffer
create
(int capacity) Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withBufferUtils
.static FMOD_CODEC_STATE
create
(long address) Returns a newFMOD_CODEC_STATE
instance for the specified memory address.static FMOD_CODEC_STATE.Buffer
create
(long address, int capacity) Create aFMOD_CODEC_STATE.Buffer
instance at the specified memory.static @Nullable FMOD_CODEC_STATE
createSafe
(long address) static @Nullable FMOD_CODEC_STATE.Buffer
createSafe
(long address, int capacity) Sets the address of the specifiedFMOD_CODEC_STATE_FUNCTIONS
to thefunctions
field.static FMOD_CODEC_STATE
malloc()
Returns a newFMOD_CODEC_STATE
instance allocated withmemAlloc
.static FMOD_CODEC_STATE.Buffer
malloc
(int capacity) Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withmemAlloc
.static FMOD_CODEC_STATE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_CODEC_STATE
malloc
(MemoryStack stack) Returns a newFMOD_CODEC_STATE
instance allocated on the specifiedMemoryStack
.static FMOD_CODEC_STATE_FUNCTIONS
nfunctions
(long struct) Unsafe version offunctions()
.static void
nfunctions
(long struct, FMOD_CODEC_STATE_FUNCTIONS value) Unsafe version offunctions
.static int
nnumsubsounds
(long struct) Unsafe version ofnumsubsounds()
.static void
nnumsubsounds
(long struct, int value) Unsafe version ofnumsubsounds
.static ByteBuffer
nplugindata
(long struct, int capacity) Unsafe version ofplugindata
.static void
nplugindata
(long struct, ByteBuffer value) Unsafe version ofplugindata
.int
numsubsounds
(int value) Sets the specified value to thenumsubsounds
field.static FMOD_CODEC_WAVEFORMAT
nwaveformat
(long struct) Unsafe version ofwaveformat()
.static void
nwaveformat
(long struct, FMOD_CODEC_WAVEFORMAT value) Unsafe version ofwaveformat
.plugindata
(int capacity) plugindata
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to theplugindata
field.set
(ByteBuffer plugindata, FMOD_CODEC_WAVEFORMAT waveformat, FMOD_CODEC_STATE_FUNCTIONS functions, int numsubsounds) Initializes this struct with the specified values.set
(FMOD_CODEC_STATE src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.waveformat
(FMOD_CODEC_WAVEFORMAT value) Sets the address of the specifiedFMOD_CODEC_WAVEFORMAT
to thewaveformat
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
PLUGINDATA
public static final int PLUGINDATAThe struct member offsets. -
WAVEFORMAT
public static final int WAVEFORMATThe struct member offsets. -
FUNCTIONS
public static final int FUNCTIONSThe struct member offsets. -
NUMSUBSOUNDS
public static final int NUMSUBSOUNDSThe struct member offsets.
-
-
Constructor Details
-
FMOD_CODEC_STATE
Creates aFMOD_CODEC_STATE
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<FMOD_CODEC_STATE>
-
plugindata
- Returns:
- a
ByteBuffer
view of the data pointed to by theplugindata
field.
-
waveformat
- Returns:
- a
FMOD_CODEC_WAVEFORMAT
view of the struct pointed to by thewaveformat
field.
-
functions
- Returns:
- a
FMOD_CODEC_STATE_FUNCTIONS
view of the struct pointed to by thefunctions
field.
-
numsubsounds
public int numsubsounds()- Returns:
- the value of the
numsubsounds
field.
-
plugindata
Sets the address of the specifiedByteBuffer
to theplugindata
field. -
waveformat
Sets the address of the specifiedFMOD_CODEC_WAVEFORMAT
to thewaveformat
field. -
functions
Sets the address of the specifiedFMOD_CODEC_STATE_FUNCTIONS
to thefunctions
field. -
numsubsounds
Sets the specified value to thenumsubsounds
field. -
set
public FMOD_CODEC_STATE set(ByteBuffer plugindata, FMOD_CODEC_WAVEFORMAT waveformat, FMOD_CODEC_STATE_FUNCTIONS functions, int numsubsounds) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newFMOD_CODEC_STATE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_STATE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_STATE
instance allocated withBufferUtils
. -
create
Returns a newFMOD_CODEC_STATE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_CODEC_STATE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_CODEC_STATE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_STATE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nplugindata
Unsafe version ofplugindata
. -
nwaveformat
Unsafe version ofwaveformat()
. -
nfunctions
Unsafe version offunctions()
. -
nnumsubsounds
public static int nnumsubsounds(long struct) Unsafe version ofnumsubsounds()
. -
nplugindata
Unsafe version ofplugindata
. -
nwaveformat
Unsafe version ofwaveformat
. -
nfunctions
Unsafe version offunctions
. -
nnumsubsounds
public static void nnumsubsounds(long struct, int value) Unsafe version ofnumsubsounds
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-