Package org.lwjgl.fmod
Class FMOD_STUDIO_ADVANCEDSETTINGS
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_STUDIO_ADVANCEDSETTINGS
extends Struct<FMOD_STUDIO_ADVANCEDSETTINGS>
implements NativeResource
struct FMOD_STUDIO_ADVANCEDSETTINGS {
int cbsize;
unsigned int commandqueuesize;
unsigned int handleinitialsize;
int studioupdateperiod;
int idlesampledatapoolsize;
unsigned int streamingscheduledelay;
char const * encryptionkey;
}
-
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 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_STUDIO_ADVANCEDSETTINGS
(ByteBuffer container) Creates aFMOD_STUDIO_ADVANCEDSETTINGS
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_ADVANCEDSETTINGS
calloc()
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_STUDIO_ADVANCEDSETTINGS
calloc
(MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
cbsize()
cbsize
(int value) Sets the specified value to thecbsize
field.int
commandqueuesize
(int value) Sets the specified value to thecommandqueuesize
field.static FMOD_STUDIO_ADVANCEDSETTINGS
create()
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withBufferUtils
.static FMOD_STUDIO_ADVANCEDSETTINGS
create
(long address) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance at the specified memory.static @Nullable FMOD_STUDIO_ADVANCEDSETTINGS
createSafe
(long address) static @Nullable FMOD_STUDIO_ADVANCEDSETTINGS.Buffer
createSafe
(long address, int capacity) encryptionkey
(ByteBuffer value) Sets the address of the specified encoded string to theencryptionkey
field.int
handleinitialsize
(int value) Sets the specified value to thehandleinitialsize
field.int
idlesampledatapoolsize
(int value) Sets the specified value to theidlesampledatapoolsize
field.static FMOD_STUDIO_ADVANCEDSETTINGS
malloc()
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_STUDIO_ADVANCEDSETTINGS
malloc
(MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated on the specifiedMemoryStack
.static int
ncbsize
(long struct) Unsafe version ofcbsize()
.static void
ncbsize
(long struct, int value) Unsafe version ofcbsize
.static int
ncommandqueuesize
(long struct) Unsafe version ofcommandqueuesize()
.static void
ncommandqueuesize
(long struct, int value) Unsafe version ofcommandqueuesize
.static ByteBuffer
nencryptionkey
(long struct) Unsafe version ofencryptionkey()
.static void
nencryptionkey
(long struct, ByteBuffer value) Unsafe version ofencryptionkey
.static String
nencryptionkeyString
(long struct) Unsafe version ofencryptionkeyString()
.static int
nhandleinitialsize
(long struct) Unsafe version ofhandleinitialsize()
.static void
nhandleinitialsize
(long struct, int value) Unsafe version ofhandleinitialsize
.static int
nidlesampledatapoolsize
(long struct) Unsafe version ofidlesampledatapoolsize()
.static void
nidlesampledatapoolsize
(long struct, int value) Unsafe version ofidlesampledatapoolsize
.static int
nstreamingscheduledelay
(long struct) Unsafe version ofstreamingscheduledelay()
.static void
nstreamingscheduledelay
(long struct, int value) Unsafe version ofstreamingscheduledelay
.static int
nstudioupdateperiod
(long struct) Unsafe version ofstudioupdateperiod()
.static void
nstudioupdateperiod
(long struct, int value) Unsafe version ofstudioupdateperiod
.set
(int cbsize, int commandqueuesize, int handleinitialsize, int studioupdateperiod, int idlesampledatapoolsize, int streamingscheduledelay, ByteBuffer encryptionkey) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
streamingscheduledelay
(int value) Sets the specified value to thestreamingscheduledelay
field.int
studioupdateperiod
(int value) Sets the specified value to thestudioupdateperiod
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. -
CBSIZE
public static final int CBSIZEThe struct member offsets. -
COMMANDQUEUESIZE
public static final int COMMANDQUEUESIZEThe struct member offsets. -
HANDLEINITIALSIZE
public static final int HANDLEINITIALSIZEThe struct member offsets. -
STUDIOUPDATEPERIOD
public static final int STUDIOUPDATEPERIODThe struct member offsets. -
IDLESAMPLEDATAPOOLSIZE
public static final int IDLESAMPLEDATAPOOLSIZEThe struct member offsets. -
STREAMINGSCHEDULEDELAY
public static final int STREAMINGSCHEDULEDELAYThe struct member offsets. -
ENCRYPTIONKEY
public static final int ENCRYPTIONKEYThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_ADVANCEDSETTINGS
Creates aFMOD_STUDIO_ADVANCEDSETTINGS
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_ADVANCEDSETTINGS>
-
cbsize
public int cbsize()- Returns:
- the value of the
cbsize
field.
-
commandqueuesize
public int commandqueuesize()- Returns:
- the value of the
commandqueuesize
field.
-
handleinitialsize
public int handleinitialsize()- Returns:
- the value of the
handleinitialsize
field.
-
studioupdateperiod
public int studioupdateperiod()- Returns:
- the value of the
studioupdateperiod
field.
-
idlesampledatapoolsize
public int idlesampledatapoolsize()- Returns:
- the value of the
idlesampledatapoolsize
field.
-
streamingscheduledelay
public int streamingscheduledelay()- Returns:
- the value of the
streamingscheduledelay
field.
-
encryptionkey
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by theencryptionkey
field.
-
encryptionkeyString
- Returns:
- the null-terminated string pointed to by the
encryptionkey
field.
-
cbsize
Sets the specified value to thecbsize
field. -
commandqueuesize
Sets the specified value to thecommandqueuesize
field. -
handleinitialsize
Sets the specified value to thehandleinitialsize
field. -
studioupdateperiod
Sets the specified value to thestudioupdateperiod
field. -
idlesampledatapoolsize
Sets the specified value to theidlesampledatapoolsize
field. -
streamingscheduledelay
Sets the specified value to thestreamingscheduledelay
field. -
encryptionkey
Sets the address of the specified encoded string to theencryptionkey
field. -
set
public FMOD_STUDIO_ADVANCEDSETTINGS set(int cbsize, int commandqueuesize, int handleinitialsize, int studioupdateperiod, int idlesampledatapoolsize, int streamingscheduledelay, ByteBuffer encryptionkey) 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_ADVANCEDSETTINGS
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated withBufferUtils
. -
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS
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_ADVANCEDSETTINGS.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncbsize
public static int ncbsize(long struct) Unsafe version ofcbsize()
. -
ncommandqueuesize
public static int ncommandqueuesize(long struct) Unsafe version ofcommandqueuesize()
. -
nhandleinitialsize
public static int nhandleinitialsize(long struct) Unsafe version ofhandleinitialsize()
. -
nstudioupdateperiod
public static int nstudioupdateperiod(long struct) Unsafe version ofstudioupdateperiod()
. -
nidlesampledatapoolsize
public static int nidlesampledatapoolsize(long struct) Unsafe version ofidlesampledatapoolsize()
. -
nstreamingscheduledelay
public static int nstreamingscheduledelay(long struct) Unsafe version ofstreamingscheduledelay()
. -
nencryptionkey
Unsafe version ofencryptionkey()
. -
nencryptionkeyString
Unsafe version ofencryptionkeyString()
. -
ncbsize
public static void ncbsize(long struct, int value) Unsafe version ofcbsize
. -
ncommandqueuesize
public static void ncommandqueuesize(long struct, int value) Unsafe version ofcommandqueuesize
. -
nhandleinitialsize
public static void nhandleinitialsize(long struct, int value) Unsafe version ofhandleinitialsize
. -
nstudioupdateperiod
public static void nstudioupdateperiod(long struct, int value) Unsafe version ofstudioupdateperiod
. -
nidlesampledatapoolsize
public static void nidlesampledatapoolsize(long struct, int value) Unsafe version ofidlesampledatapoolsize
. -
nstreamingscheduledelay
public static void nstreamingscheduledelay(long struct, int value) Unsafe version ofstreamingscheduledelay
. -
nencryptionkey
Unsafe version ofencryptionkey
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-