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;
FMOD_STUDIO_PARAMETER_ID id;
float minimum;
float maximum;
float defaultvalue;
FMOD_STUDIO_PARAMETER_TYPE type;
FMOD_STUDIO_PARAMETER_FLAGS flags;
FMOD_GUID guid;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofFMOD_STUDIO_PARAMETER_DESCRIPTIONstructs.Nested 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 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_STUDIO_PARAMETER_DESCRIPTION(ByteBuffer container) Creates aFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withBufferUtils.create(long address) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance for the specified memory address.create(long address, int capacity) Create aFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_PARAMETER_DESCRIPTIONcreateSafe(long address) static @Nullable FMOD_STUDIO_PARAMETER_DESCRIPTION.BuffercreateSafe(long address, int capacity) floatdefaultvalue(float value) Sets the specified value to thedefaultvaluefield.intflags()flags(int value) Sets the specified value to theflagsfield.guid()Passes theguidfield to the specifiedConsumer.Copies the specifiedFMOD_GUIDto theguidfield.id()id(Consumer<FMOD_STUDIO_PARAMETER_ID> consumer) Passes theidfield to the specifiedConsumer.id(FMOD_STUDIO_PARAMETER_ID value) Copies the specifiedFMOD_STUDIO_PARAMETER_IDto theidfield.malloc()Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated on the specifiedMemoryStack.floatmaximum()maximum(float value) Sets the specified value to themaximumfield.floatminimum()minimum(float value) Sets the specified value to theminimumfield.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static floatndefaultvalue(long struct) Unsafe version ofdefaultvalue().static voidndefaultvalue(long struct, float value) Unsafe version ofdefaultvalue.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static FMOD_GUIDnguid(long struct) Unsafe version ofguid().static voidUnsafe version ofguid.static FMOD_STUDIO_PARAMETER_IDnid(long struct) Unsafe version ofid().static voidnid(long struct, FMOD_STUDIO_PARAMETER_ID value) Unsafe version ofid.static floatnmaximum(long struct) Unsafe version ofmaximum().static voidnmaximum(long struct, float value) Unsafe version ofmaximum.static floatnminimum(long struct) Unsafe version ofminimum().static voidnminimum(long struct, float value) Unsafe version ofminimum.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static intntype(long struct) Unsafe version oftype().static voidntype(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.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.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. -
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_DESCRIPTIONinstance 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_STUDIO_PARAMETER_DESCRIPTION>
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
id
- Returns:
- a
FMOD_STUDIO_PARAMETER_IDview of theidfield.
-
minimum
public float minimum()- Returns:
- the value of the
minimumfield.
-
maximum
public float maximum()- Returns:
- the value of the
maximumfield.
-
defaultvalue
public float defaultvalue()- Returns:
- the value of the
defaultvaluefield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
guid
- Returns:
- a
FMOD_GUIDview of theguidfield.
-
name
Sets the address of the specified encoded string to thenamefield. -
id
Copies the specifiedFMOD_STUDIO_PARAMETER_IDto theidfield. -
id
Passes theidfield to the specifiedConsumer. -
minimum
Sets the specified value to theminimumfield. -
maximum
Sets the specified value to themaximumfield. -
defaultvalue
Sets the specified value to thedefaultvaluefield. -
type
Sets the specified value to thetypefield. -
flags
Sets the specified value to theflagsfield. -
guid
Copies the specifiedFMOD_GUIDto theguidfield. -
guid
Passes theguidfield 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_DESCRIPTIONinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance 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_DESCRIPTIONinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTIONinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_PARAMETER_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStackand 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
-