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;
{@link FMOD_DSP_STATE_FUNCTIONS FMOD_DSP_STATE_FUNCTIONS} * functions;
int systemobject;
}
-
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 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.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_DSP_STATE
(ByteBuffer container) Creates aFMOD_DSP_STATE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_DSP_STATE
calloc()
Returns a newFMOD_DSP_STATE
instance allocated withmemCalloc
.static FMOD_DSP_STATE.Buffer
calloc
(int capacity) Returns a newFMOD_DSP_STATE.Buffer
instance allocated withmemCalloc
.static FMOD_DSP_STATE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_STATE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_STATE
calloc
(MemoryStack stack) Returns a newFMOD_DSP_STATE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
channelmask
(int value) Sets the specified value to thechannelmask
field.static FMOD_DSP_STATE
create()
Returns a newFMOD_DSP_STATE
instance allocated withBufferUtils
.static FMOD_DSP_STATE.Buffer
create
(int capacity) Returns a newFMOD_DSP_STATE.Buffer
instance allocated withBufferUtils
.static FMOD_DSP_STATE
create
(long address) Returns a newFMOD_DSP_STATE
instance for the specified memory address.static FMOD_DSP_STATE.Buffer
create
(long address, int capacity) Create aFMOD_DSP_STATE.Buffer
instance at the specified memory.static @Nullable FMOD_DSP_STATE
createSafe
(long address) static @Nullable FMOD_DSP_STATE.Buffer
createSafe
(long address, int capacity) Sets the address of the specifiedFMOD_DSP_STATE_FUNCTIONS
to thefunctions
field.long
instance()
instance
(long value) Sets the specified value to theinstance
field.static FMOD_DSP_STATE
malloc()
Returns a newFMOD_DSP_STATE
instance allocated withmemAlloc
.static FMOD_DSP_STATE.Buffer
malloc
(int capacity) Returns a newFMOD_DSP_STATE.Buffer
instance allocated withmemAlloc
.static FMOD_DSP_STATE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_STATE.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_DSP_STATE
malloc
(MemoryStack stack) Returns a newFMOD_DSP_STATE
instance allocated on the specifiedMemoryStack
.static int
nchannelmask
(long struct) Unsafe version ofchannelmask()
.static void
nchannelmask
(long struct, int value) Unsafe version ofchannelmask
.static FMOD_DSP_STATE_FUNCTIONS
nfunctions
(long struct) Unsafe version offunctions()
.static void
nfunctions
(long struct, FMOD_DSP_STATE_FUNCTIONS value) Unsafe version offunctions
.static long
ninstance
(long struct) Unsafe version ofinstance()
.static void
ninstance
(long struct, long value) Unsafe version ofinstance
.static long
nplugindata
(long struct) Unsafe version ofplugindata()
.static void
nplugindata
(long struct, long value) Unsafe version ofplugindata
.static int
nsidechainchannels
(long struct) Unsafe version ofsidechainchannels()
.static void
nsidechainchannels
(long struct, int value) Sets the specified value to thesidechainchannels
field of the specifiedstruct
.static FloatBuffer
nsidechaindata
(long struct) Unsafe version ofsidechaindata
.static void
nsidechaindata
(long struct, FloatBuffer value) Unsafe version ofsidechaindata
.static int
nsource_speakermode
(long struct) Unsafe version ofsource_speakermode()
.static void
nsource_speakermode
(long struct, int value) Unsafe version ofsource_speakermode
.static int
nsystemobject
(long struct) Unsafe version ofsystemobject()
.static void
nsystemobject
(long struct, int value) Unsafe version ofsystemobject
.long
plugindata
(long value) Sets the specified value to theplugindata
field.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.int
sidechaindata
(FloatBuffer value) Sets the address of the specifiedFloatBuffer
to thesidechaindata
field.int
sizeof()
Returnssizeof(struct)
.int
source_speakermode
(int value) Sets the specified value to thesource_speakermode
field.int
systemobject
(int value) Sets the specified value to thesystemobject
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
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_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_DSP_STATE>
-
instance
public long instance()- Returns:
- the value of the
instance
field.
-
plugindata
public long plugindata()- Returns:
- the value of the
plugindata
field.
-
channelmask
public int channelmask()- Returns:
- the value of the
channelmask
field.
-
source_speakermode
public int source_speakermode()- Returns:
- the value of the
source_speakermode
field.
-
sidechaindata
- Returns:
- a
FloatBuffer
view of the data pointed to by thesidechaindata
field.
-
sidechainchannels
public int sidechainchannels()- Returns:
- the value of the
sidechainchannels
field.
-
functions
- Returns:
- a
FMOD_DSP_STATE_FUNCTIONS
view of the struct pointed to by thefunctions
field.
-
systemobject
public int systemobject()- Returns:
- the value of the
systemobject
field.
-
instance
Sets the specified value to theinstance
field. -
plugindata
Sets the specified value to theplugindata
field. -
channelmask
Sets the specified value to thechannelmask
field. -
source_speakermode
Sets the specified value to thesource_speakermode
field. -
sidechaindata
Sets the address of the specifiedFloatBuffer
to thesidechaindata
field. -
functions
Sets the address of the specifiedFMOD_DSP_STATE_FUNCTIONS
to thefunctions
field. -
systemobject
Sets the specified value to thesystemobject
field. -
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_STATE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_STATE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_STATE
instance allocated withBufferUtils
. -
create
Returns a newFMOD_DSP_STATE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_STATE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_DSP_STATE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_DSP_STATE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_DSP_STATE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_STATE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_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_DSP_STATE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_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
-
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 thesidechainchannels
field 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
-