Package org.lwjgl.fmod
Class FMOD_STUDIO_PARAMETER_DESCRIPTION
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<FMOD_STUDIO_PARAMETER_DESCRIPTION>
org.lwjgl.fmod.FMOD_STUDIO_PARAMETER_DESCRIPTION
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_STUDIO_PARAMETER_DESCRIPTION
extends Struct<FMOD_STUDIO_PARAMETER_DESCRIPTION>
implements NativeResource
struct FMOD_STUDIO_PARAMETER_DESCRIPTION {
char const * name;
{@link FMOD_STUDIO_PARAMETER_ID FMOD_STUDIO_PARAMETER_ID} id;
float minimum;
float maximum;
float defaultvalue;
FMOD_STUDIO_PARAMETER_TYPE type;
FMOD_STUDIO_PARAMETER_FLAGS flags;
{@link FMOD_GUID FMOD_GUID} guid;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofFMOD_STUDIO_PARAMETER_DESCRIPTION
structs.Nested 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_STUDIO_PARAMETER_DESCRIPTION
(ByteBuffer container) Creates aFMOD_STUDIO_PARAMETER_DESCRIPTION
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance at the specified memory.static @Nullable FMOD_STUDIO_PARAMETER_DESCRIPTION
createSafe
(long address) static @Nullable FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
createSafe
(long address, int capacity) float
defaultvalue
(float value) Sets the specified value to thedefaultvalue
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.guid()
Passes theguid
field to the specifiedConsumer
.Copies the specifiedFMOD_GUID
to theguid
field.id()
id
(Consumer<FMOD_STUDIO_PARAMETER_ID> consumer) Passes theid
field to the specifiedConsumer
.id
(FMOD_STUDIO_PARAMETER_ID value) Copies the specifiedFMOD_STUDIO_PARAMETER_ID
to theid
field.malloc()
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated on the specifiedMemoryStack
.float
maximum()
maximum
(float value) Sets the specified value to themaximum
field.float
minimum()
minimum
(float value) Sets the specified value to theminimum
field.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.static float
ndefaultvalue
(long struct) Unsafe version ofdefaultvalue()
.static void
ndefaultvalue
(long struct, float value) Unsafe version ofdefaultvalue
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static FMOD_GUID
nguid
(long struct) Unsafe version ofguid()
.static void
Unsafe version ofguid
.static FMOD_STUDIO_PARAMETER_ID
nid
(long struct) Unsafe version ofid()
.static void
nid
(long struct, FMOD_STUDIO_PARAMETER_ID value) Unsafe version ofid
.static float
nmaximum
(long struct) Unsafe version ofmaximum()
.static void
nmaximum
(long struct, float value) Unsafe version ofmaximum
.static float
nminimum
(long struct) Unsafe version ofminimum()
.static void
nminimum
(long struct, float value) Unsafe version ofminimum
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.set
(ByteBuffer name, FMOD_STUDIO_PARAMETER_ID id, float minimum, float maximum, float defaultvalue, int type, int flags, FMOD_GUID guid) Initializes this struct with the specified values.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. -
NAME
public static final int NAMEThe struct member offsets. -
ID
public static final int IDThe struct member offsets. -
MINIMUM
public static final int MINIMUMThe struct member offsets. -
MAXIMUM
public static final int MAXIMUMThe struct member offsets. -
DEFAULTVALUE
public static final int DEFAULTVALUEThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
GUID
public static final int GUIDThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_PARAMETER_DESCRIPTION
Creates aFMOD_STUDIO_PARAMETER_DESCRIPTION
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_STUDIO_PARAMETER_DESCRIPTION>
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
id
- Returns:
- a
FMOD_STUDIO_PARAMETER_ID
view of theid
field.
-
minimum
public float minimum()- Returns:
- the value of the
minimum
field.
-
maximum
public float maximum()- Returns:
- the value of the
maximum
field.
-
defaultvalue
public float defaultvalue()- Returns:
- the value of the
defaultvalue
field.
-
type
public int type()- Returns:
- the value of the
type
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
guid
- Returns:
- a
FMOD_GUID
view of theguid
field.
-
name
Sets the address of the specified encoded string to thename
field. -
id
Copies the specifiedFMOD_STUDIO_PARAMETER_ID
to theid
field. -
id
Passes theid
field to the specifiedConsumer
. -
minimum
Sets the specified value to theminimum
field. -
maximum
Sets the specified value to themaximum
field. -
defaultvalue
Sets the specified value to thedefaultvalue
field. -
type
Sets the specified value to thetype
field. -
flags
Sets the specified value to theflags
field. -
guid
Copies the specifiedFMOD_GUID
to theguid
field. -
guid
Passes theguid
field to the specifiedConsumer
. -
set
public FMOD_STUDIO_PARAMETER_DESCRIPTION set(ByteBuffer name, FMOD_STUDIO_PARAMETER_ID id, float minimum, float maximum, float defaultvalue, int type, int flags, FMOD_GUID guid) 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_STUDIO_PARAMETER_DESCRIPTION
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated withBufferUtils
. -
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable FMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer createSafe(long address, int capacity) -
malloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
nid
Unsafe version ofid()
. -
nminimum
public static float nminimum(long struct) Unsafe version ofminimum()
. -
nmaximum
public static float nmaximum(long struct) Unsafe version ofmaximum()
. -
ndefaultvalue
public static float ndefaultvalue(long struct) Unsafe version ofdefaultvalue()
. -
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nguid
Unsafe version ofguid()
. -
nname
Unsafe version ofname
. -
nid
Unsafe version ofid
. -
nminimum
public static void nminimum(long struct, float value) Unsafe version ofminimum
. -
nmaximum
public static void nmaximum(long struct, float value) Unsafe version ofmaximum
. -
ndefaultvalue
public static void ndefaultvalue(long struct, float value) Unsafe version ofdefaultvalue
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nguid
Unsafe version ofguid
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-