Package org.lwjgl.fmod
Class FMOD_DSP_PARAMETER_DESC
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_DSP_PARAMETER_DESC
extends Struct<FMOD_DSP_PARAMETER_DESC>
implements NativeResource
struct FMOD_DSP_PARAMETER_DESC {
FMOD_DSP_PARAMETER_TYPE type;
char name[16];
char label[16];
char const * description;
union {
{@link FMOD_DSP_PARAMETER_DESC_FLOAT FMOD_DSP_PARAMETER_DESC_FLOAT} floatdesc;
{@link FMOD_DSP_PARAMETER_DESC_INT FMOD_DSP_PARAMETER_DESC_INT} intdesc;
{@link FMOD_DSP_PARAMETER_DESC_BOOL FMOD_DSP_PARAMETER_DESC_BOOL} booldesc;
{@link FMOD_DSP_PARAMETER_DESC_DATA FMOD_DSP_PARAMETER_DESC_DATA} datadesc;
};
}
-
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 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_DSP_PARAMETER_DESC
(ByteBuffer container) Creates aFMOD_DSP_PARAMETER_DESC
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbooldesc()
booldesc
(Consumer<FMOD_DSP_PARAMETER_DESC_BOOL> consumer) Passes thebooldesc
field to the specifiedConsumer
.Copies the specifiedFMOD_DSP_PARAMETER_DESC_BOOL
to thebooldesc
field.static FMOD_DSP_PARAMETER_DESC
calloc()
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_PARAMETER_DESC
calloc
(MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_PARAMETER_DESC
create()
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withBufferUtils
.static FMOD_DSP_PARAMETER_DESC
create
(long address) Returns a newFMOD_DSP_PARAMETER_DESC
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_DSP_PARAMETER_DESC.Buffer
instance at the specified memory.static @Nullable FMOD_DSP_PARAMETER_DESC
createSafe
(long address) static @Nullable FMOD_DSP_PARAMETER_DESC.Buffer
createSafe
(long address, int capacity) datadesc()
datadesc
(Consumer<FMOD_DSP_PARAMETER_DESC_DATA> consumer) Passes thedatadesc
field to the specifiedConsumer
.Copies the specifiedFMOD_DSP_PARAMETER_DESC_DATA
to thedatadesc
field.description
(ByteBuffer value) Sets the address of the specified encoded string to thedescription
field.floatdesc
(Consumer<FMOD_DSP_PARAMETER_DESC_FLOAT> consumer) Passes thefloatdesc
field to the specifiedConsumer
.Copies the specifiedFMOD_DSP_PARAMETER_DESC_FLOAT
to thefloatdesc
field.intdesc()
intdesc
(Consumer<FMOD_DSP_PARAMETER_DESC_INT> consumer) Passes theintdesc
field to the specifiedConsumer
.Copies the specifiedFMOD_DSP_PARAMETER_DESC_INT
to theintdesc
field.label()
byte
label
(int index) label
(int index, byte value) Sets the specified value at the specified index of thelabel
field.label
(ByteBuffer value) Copies the specifiedByteBuffer
to thelabel
field.static FMOD_DSP_PARAMETER_DESC
malloc()
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_DSP_PARAMETER_DESC
malloc
(MemoryStack stack) Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated on the specifiedMemoryStack
.name()
byte
name
(int index) name
(int index, byte value) Sets the specified value at the specified index of thename
field.name
(ByteBuffer value) Copies the specifiedByteBuffer
to thename
field.static FMOD_DSP_PARAMETER_DESC_BOOL
nbooldesc
(long struct) Unsafe version ofbooldesc()
.static void
nbooldesc
(long struct, FMOD_DSP_PARAMETER_DESC_BOOL value) Unsafe version ofbooldesc
.static FMOD_DSP_PARAMETER_DESC_DATA
ndatadesc
(long struct) Unsafe version ofdatadesc()
.static void
ndatadesc
(long struct, FMOD_DSP_PARAMETER_DESC_DATA value) Unsafe version ofdatadesc
.static ByteBuffer
ndescription
(long struct) Unsafe version ofdescription()
.static void
ndescription
(long struct, ByteBuffer value) Unsafe version ofdescription
.static String
ndescriptionString
(long struct) Unsafe version ofdescriptionString()
.nfloatdesc
(long struct) Unsafe version offloatdesc()
.static void
nfloatdesc
(long struct, FMOD_DSP_PARAMETER_DESC_FLOAT value) Unsafe version offloatdesc
.static FMOD_DSP_PARAMETER_DESC_INT
nintdesc
(long struct) Unsafe version ofintdesc()
.static void
nintdesc
(long struct, FMOD_DSP_PARAMETER_DESC_INT value) Unsafe version ofintdesc
.static ByteBuffer
nlabel
(long struct) Unsafe version oflabel()
.static byte
nlabel
(long struct, int index) Unsafe version oflabel
.static void
nlabel
(long struct, int index, byte value) Unsafe version oflabel
.static void
nlabel
(long struct, ByteBuffer value) Unsafe version oflabel
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static byte
nname
(long struct, int index) Unsafe version ofname
.static void
nname
(long struct, int index, byte value) Unsafe version ofname
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
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. -
TYPE
public static final int TYPEThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
LABEL
public static final int LABELThe struct member offsets. -
DESCRIPTION
public static final int DESCRIPTIONThe struct member offsets. -
FLOATDESC
public static final int FLOATDESCThe struct member offsets. -
INTDESC
public static final int INTDESCThe struct member offsets. -
BOOLDESC
public static final int BOOLDESCThe struct member offsets. -
DATADESC
public static final int DATADESCThe struct member offsets.
-
-
Constructor Details
-
FMOD_DSP_PARAMETER_DESC
Creates aFMOD_DSP_PARAMETER_DESC
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_PARAMETER_DESC>
-
type
public int type()- Returns:
- the value of the
type
field.
-
name
- Returns:
- a
ByteBuffer
view of thename
field.
-
name
public byte name(int index) - Returns:
- the value at the specified index of the
name
field.
-
label
- Returns:
- a
ByteBuffer
view of thelabel
field.
-
label
public byte label(int index) - Returns:
- the value at the specified index of the
label
field.
-
description
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thedescription
field.
-
descriptionString
- Returns:
- the null-terminated string pointed to by the
description
field.
-
floatdesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_FLOAT
view of thefloatdesc
field.
-
intdesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_INT
view of theintdesc
field.
-
booldesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_BOOL
view of thebooldesc
field.
-
datadesc
- Returns:
- a
FMOD_DSP_PARAMETER_DESC_DATA
view of thedatadesc
field.
-
type
Sets the specified value to thetype
field. -
name
Copies the specifiedByteBuffer
to thename
field. -
name
Sets the specified value at the specified index of thename
field. -
label
Copies the specifiedByteBuffer
to thelabel
field. -
label
Sets the specified value at the specified index of thelabel
field. -
description
Sets the address of the specified encoded string to thedescription
field. -
floatdesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_FLOAT
to thefloatdesc
field. -
floatdesc
Passes thefloatdesc
field to the specifiedConsumer
. -
intdesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_INT
to theintdesc
field. -
intdesc
Passes theintdesc
field to the specifiedConsumer
. -
booldesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_BOOL
to thebooldesc
field. -
booldesc
Passes thebooldesc
field to the specifiedConsumer
. -
datadesc
Copies the specifiedFMOD_DSP_PARAMETER_DESC_DATA
to thedatadesc
field. -
datadesc
Passes thedatadesc
field to the specifiedConsumer
. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated withBufferUtils
. -
create
Returns a newFMOD_DSP_PARAMETER_DESC
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_DSP_PARAMETER_DESC.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_PARAMETER_DESC
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESC
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_PARAMETER_DESC.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_PARAMETER_DESC.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nname
Unsafe version ofname()
. -
nname
public static byte nname(long struct, int index) Unsafe version ofname
. -
nlabel
Unsafe version oflabel()
. -
nlabel
public static byte nlabel(long struct, int index) Unsafe version oflabel
. -
ndescription
Unsafe version ofdescription()
. -
ndescriptionString
Unsafe version ofdescriptionString()
. -
nfloatdesc
Unsafe version offloatdesc()
. -
nintdesc
Unsafe version ofintdesc()
. -
nbooldesc
Unsafe version ofbooldesc()
. -
ndatadesc
Unsafe version ofdatadesc()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nname
Unsafe version ofname
. -
nname
public static void nname(long struct, int index, byte value) Unsafe version ofname
. -
nlabel
Unsafe version oflabel
. -
nlabel
public static void nlabel(long struct, int index, byte value) Unsafe version oflabel
. -
ndescription
Unsafe version ofdescription
. -
nfloatdesc
Unsafe version offloatdesc
. -
nintdesc
Unsafe version ofintdesc
. -
nbooldesc
Unsafe version ofbooldesc
. -
ndatadesc
Unsafe version ofdatadesc
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-