Package org.lwjgl.fmod
Class FMOD_DSP_STATE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_DSP_STATE {
void * instance;
void * plugindata;
FMOD_CHANNELMASK channelmask;
FMOD_SPEAKERMODE source_speakermode;
float * sidechaindata;
int sidechainchannels;
FMOD_DSP_STATE_FUNCTIONS * functions;
int systemobject;
}-
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 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.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_DSP_STATE(ByteBuffer container) Creates aFMOD_DSP_STATEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_DSP_STATEcalloc()Returns a newFMOD_DSP_STATEinstance allocated withmemCalloc.static FMOD_DSP_STATE.Buffercalloc(int capacity) Returns a newFMOD_DSP_STATE.Bufferinstance allocated withmemCalloc.static FMOD_DSP_STATE.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_STATE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_STATEcalloc(MemoryStack stack) Returns a newFMOD_DSP_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannelmask(int value) Sets the specified value to thechannelmaskfield.static FMOD_DSP_STATEcreate()Returns a newFMOD_DSP_STATEinstance allocated withBufferUtils.static FMOD_DSP_STATE.Buffercreate(int capacity) Returns a newFMOD_DSP_STATE.Bufferinstance allocated withBufferUtils.static FMOD_DSP_STATEcreate(long address) Returns a newFMOD_DSP_STATEinstance for the specified memory address.static FMOD_DSP_STATE.Buffercreate(long address, int capacity) Create aFMOD_DSP_STATE.Bufferinstance at the specified memory.static @Nullable FMOD_DSP_STATEcreateSafe(long address) static @Nullable FMOD_DSP_STATE.BuffercreateSafe(long address, int capacity) Sets the address of the specifiedFMOD_DSP_STATE_FUNCTIONSto thefunctionsfield.longinstance()instance(long value) Sets the specified value to theinstancefield.static FMOD_DSP_STATEmalloc()Returns a newFMOD_DSP_STATEinstance allocated withmemAlloc.static FMOD_DSP_STATE.Buffermalloc(int capacity) Returns a newFMOD_DSP_STATE.Bufferinstance allocated withmemAlloc.static FMOD_DSP_STATE.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_STATE.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_DSP_STATEmalloc(MemoryStack stack) Returns a newFMOD_DSP_STATEinstance allocated on the specifiedMemoryStack.static intnchannelmask(long struct) Unsafe version ofchannelmask().static voidnchannelmask(long struct, int value) Unsafe version ofchannelmask.static FMOD_DSP_STATE_FUNCTIONSnfunctions(long struct) Unsafe version offunctions().static voidnfunctions(long struct, FMOD_DSP_STATE_FUNCTIONS value) Unsafe version offunctions.static longninstance(long struct) Unsafe version ofinstance().static voidninstance(long struct, long value) Unsafe version ofinstance.static longnplugindata(long struct) Unsafe version ofplugindata().static voidnplugindata(long struct, long value) Unsafe version ofplugindata.static intnsidechainchannels(long struct) Unsafe version ofsidechainchannels().static voidnsidechainchannels(long struct, int value) Sets the specified value to thesidechainchannelsfield of the specifiedstruct.static FloatBuffernsidechaindata(long struct) Unsafe version ofsidechaindata.static voidnsidechaindata(long struct, FloatBuffer value) Unsafe version ofsidechaindata.static intnsource_speakermode(long struct) Unsafe version ofsource_speakermode().static voidnsource_speakermode(long struct, int value) Unsafe version ofsource_speakermode.static intnsystemobject(long struct) Unsafe version ofsystemobject().static voidnsystemobject(long struct, int value) Unsafe version ofsystemobject.longplugindata(long value) Sets the specified value to theplugindatafield.set(long instance, long plugindata, int channelmask, int source_speakermode, FloatBuffer sidechaindata, FMOD_DSP_STATE_FUNCTIONS functions, int systemobject) Initializes this struct with the specified values.set(FMOD_DSP_STATE src) Copies the specified struct data to this struct.intsidechaindata(FloatBuffer value) Sets the address of the specifiedFloatBufferto thesidechaindatafield.intsizeof()Returnssizeof(struct).intsource_speakermode(int value) Sets the specified value to thesource_speakermodefield.intsystemobject(int value) Sets the specified value to thesystemobjectfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
INSTANCE
public static final int INSTANCEThe struct member offsets. -
PLUGINDATA
public static final int PLUGINDATAThe struct member offsets. -
CHANNELMASK
public static final int CHANNELMASKThe struct member offsets. -
SOURCE_SPEAKERMODE
public static final int SOURCE_SPEAKERMODEThe struct member offsets. -
SIDECHAINDATA
public static final int SIDECHAINDATAThe struct member offsets. -
SIDECHAINCHANNELS
public static final int SIDECHAINCHANNELSThe struct member offsets. -
FUNCTIONS
public static final int FUNCTIONSThe struct member offsets. -
SYSTEMOBJECT
public static final int SYSTEMOBJECTThe struct member offsets.
-
-
Constructor Details
-
FMOD_DSP_STATE
Creates aFMOD_DSP_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_DSP_STATE>
-
instance
public long instance()- Returns:
- the value of the
instancefield.
-
plugindata
public long plugindata()- Returns:
- the value of the
plugindatafield.
-
channelmask
public int channelmask()- Returns:
- the value of the
channelmaskfield.
-
source_speakermode
public int source_speakermode()- Returns:
- the value of the
source_speakermodefield.
-
sidechaindata
- Returns:
- a
FloatBufferview of the data pointed to by thesidechaindatafield.
-
sidechainchannels
public int sidechainchannels()- Returns:
- the value of the
sidechainchannelsfield.
-
functions
- Returns:
- a
FMOD_DSP_STATE_FUNCTIONSview of the struct pointed to by thefunctionsfield.
-
systemobject
public int systemobject()- Returns:
- the value of the
systemobjectfield.
-
instance
Sets the specified value to theinstancefield. -
plugindata
Sets the specified value to theplugindatafield. -
channelmask
Sets the specified value to thechannelmaskfield. -
source_speakermode
Sets the specified value to thesource_speakermodefield. -
sidechaindata
Sets the address of the specifiedFloatBufferto thesidechaindatafield. -
functions
Sets the address of the specifiedFMOD_DSP_STATE_FUNCTIONSto thefunctionsfield. -
systemobject
Sets the specified value to thesystemobjectfield. -
set
public FMOD_DSP_STATE set(long instance, long plugindata, int channelmask, int source_speakermode, FloatBuffer sidechaindata, FMOD_DSP_STATE_FUNCTIONS functions, int systemobject) 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_DSP_STATEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_STATEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_STATEinstance allocated withBufferUtils. -
create
Returns a newFMOD_DSP_STATEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_STATE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_DSP_STATE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_DSP_STATE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_DSP_STATE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_STATEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_STATE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_STATE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ninstance
public static long ninstance(long struct) Unsafe version ofinstance(). -
nplugindata
public static long nplugindata(long struct) Unsafe version ofplugindata(). -
nchannelmask
public static int nchannelmask(long struct) Unsafe version ofchannelmask(). -
nsource_speakermode
public static int nsource_speakermode(long struct) Unsafe version ofsource_speakermode(). -
nsidechaindata
Unsafe version ofsidechaindata. -
nsidechainchannels
public static int nsidechainchannels(long struct) Unsafe version ofsidechainchannels(). -
nfunctions
Unsafe version offunctions(). -
nsystemobject
public static int nsystemobject(long struct) Unsafe version ofsystemobject(). -
ninstance
public static void ninstance(long struct, long value) Unsafe version ofinstance. -
nplugindata
public static void nplugindata(long struct, long value) Unsafe version ofplugindata. -
nchannelmask
public static void nchannelmask(long struct, int value) Unsafe version ofchannelmask. -
nsource_speakermode
public static void nsource_speakermode(long struct, int value) Unsafe version ofsource_speakermode. -
nsidechaindata
Unsafe version ofsidechaindata. -
nsidechainchannels
public static void nsidechainchannels(long struct, int value) Sets the specified value to thesidechainchannelsfield of the specifiedstruct. -
nfunctions
Unsafe version offunctions. -
nsystemobject
public static void nsystemobject(long struct, int value) Unsafe version ofsystemobject. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-