Package org.lwjgl.fmod
Class FMOD_CODEC_STATE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_CODEC_STATE {
void * plugindata;
struct FMOD_CODEC_WAVEFORMAT * waveformat;
FMOD_CODEC_STATE_FUNCTIONS * functions;
int numsubsounds;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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_STATEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CODEC_STATEcalloc()Returns a newFMOD_CODEC_STATEinstance allocated withmemCalloc.static FMOD_CODEC_STATE.Buffercalloc(int capacity) Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withmemCalloc.static FMOD_CODEC_STATE.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_STATEcalloc(MemoryStack stack) Returns a newFMOD_CODEC_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_STATEcreate()Returns a newFMOD_CODEC_STATEinstance allocated withBufferUtils.static FMOD_CODEC_STATE.Buffercreate(int capacity) Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withBufferUtils.static FMOD_CODEC_STATEcreate(long address) Returns a newFMOD_CODEC_STATEinstance for the specified memory address.static FMOD_CODEC_STATE.Buffercreate(long address, int capacity) Create aFMOD_CODEC_STATE.Bufferinstance at the specified memory.static @Nullable FMOD_CODEC_STATEcreateSafe(long address) static @Nullable FMOD_CODEC_STATE.BuffercreateSafe(long address, int capacity) Sets the address of the specifiedFMOD_CODEC_STATE_FUNCTIONSto thefunctionsfield.static FMOD_CODEC_STATEmalloc()Returns a newFMOD_CODEC_STATEinstance allocated withmemAlloc.static FMOD_CODEC_STATE.Buffermalloc(int capacity) Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withmemAlloc.static FMOD_CODEC_STATE.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_STATE.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_CODEC_STATEmalloc(MemoryStack stack) Returns a newFMOD_CODEC_STATEinstance allocated on the specifiedMemoryStack.static FMOD_CODEC_STATE_FUNCTIONSnfunctions(long struct) Unsafe version offunctions().static voidnfunctions(long struct, FMOD_CODEC_STATE_FUNCTIONS value) Unsafe version offunctions.static intnnumsubsounds(long struct) Unsafe version ofnumsubsounds().static voidnnumsubsounds(long struct, int value) Unsafe version ofnumsubsounds.static ByteBuffernplugindata(long struct, int capacity) Unsafe version ofplugindata.static voidnplugindata(long struct, ByteBuffer value) Unsafe version ofplugindata.intnumsubsounds(int value) Sets the specified value to thenumsubsoundsfield.static FMOD_CODEC_WAVEFORMATnwaveformat(long struct) Unsafe version ofwaveformat().static voidnwaveformat(long struct, FMOD_CODEC_WAVEFORMAT value) Unsafe version ofwaveformat.plugindata(int capacity) plugindata(ByteBuffer value) Sets the address of the specifiedByteBufferto theplugindatafield.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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.waveformat(FMOD_CODEC_WAVEFORMAT value) Sets the address of the specifiedFMOD_CODEC_WAVEFORMATto thewaveformatfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_STATEinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<FMOD_CODEC_STATE>
-
plugindata
- Returns:
- a
ByteBufferview of the data pointed to by theplugindatafield.
-
waveformat
- Returns:
- a
FMOD_CODEC_WAVEFORMATview of the struct pointed to by thewaveformatfield.
-
functions
- Returns:
- a
FMOD_CODEC_STATE_FUNCTIONSview of the struct pointed to by thefunctionsfield.
-
numsubsounds
public int numsubsounds()- Returns:
- the value of the
numsubsoundsfield.
-
plugindata
Sets the address of the specifiedByteBufferto theplugindatafield. -
waveformat
Sets the address of the specifiedFMOD_CODEC_WAVEFORMATto thewaveformatfield. -
functions
Sets the address of the specifiedFMOD_CODEC_STATE_FUNCTIONSto thefunctionsfield. -
numsubsounds
Sets the specified value to thenumsubsoundsfield. -
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_STATEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_STATEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_STATEinstance allocated withBufferUtils. -
create
Returns a newFMOD_CODEC_STATEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_CODEC_STATE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_CODEC_STATE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_STATEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_STATE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_STATE.Bufferinstance allocated on the specifiedMemoryStackand 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
-