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.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 size in bytes.static final intThe struct member offsets.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_ADVANCEDSETTINGS(ByteBuffer container) Creates aFMOD_STUDIO_ADVANCEDSETTINGSinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_ADVANCEDSETTINGScalloc()Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_ADVANCEDSETTINGScalloc(MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcbsize()cbsize(int value) Sets the specified value to thecbsizefield.intcommandqueuesize(int value) Sets the specified value to thecommandqueuesizefield.static FMOD_STUDIO_ADVANCEDSETTINGScreate()Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withBufferUtils.static FMOD_STUDIO_ADVANCEDSETTINGScreate(long address) Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance for the specified memory address.create(long address, int capacity) Create aFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_ADVANCEDSETTINGScreateSafe(long address) static @Nullable FMOD_STUDIO_ADVANCEDSETTINGS.BuffercreateSafe(long address, int capacity) encryptionkey(ByteBuffer value) Sets the address of the specified encoded string to theencryptionkeyfield.inthandleinitialsize(int value) Sets the specified value to thehandleinitialsizefield.intidlesampledatapoolsize(int value) Sets the specified value to theidlesampledatapoolsizefield.static FMOD_STUDIO_ADVANCEDSETTINGSmalloc()Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_STUDIO_ADVANCEDSETTINGSmalloc(MemoryStack stack) Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated on the specifiedMemoryStack.static intncbsize(long struct) Unsafe version ofcbsize().static voidncbsize(long struct, int value) Unsafe version ofcbsize.static intncommandqueuesize(long struct) Unsafe version ofcommandqueuesize().static voidncommandqueuesize(long struct, int value) Unsafe version ofcommandqueuesize.static ByteBuffernencryptionkey(long struct) Unsafe version ofencryptionkey().static voidnencryptionkey(long struct, ByteBuffer value) Unsafe version ofencryptionkey.static StringnencryptionkeyString(long struct) Unsafe version ofencryptionkeyString().static intnhandleinitialsize(long struct) Unsafe version ofhandleinitialsize().static voidnhandleinitialsize(long struct, int value) Unsafe version ofhandleinitialsize.static intnidlesampledatapoolsize(long struct) Unsafe version ofidlesampledatapoolsize().static voidnidlesampledatapoolsize(long struct, int value) Unsafe version ofidlesampledatapoolsize.static intnstreamingscheduledelay(long struct) Unsafe version ofstreamingscheduledelay().static voidnstreamingscheduledelay(long struct, int value) Unsafe version ofstreamingscheduledelay.static intnstudioupdateperiod(long struct) Unsafe version ofstudioupdateperiod().static voidnstudioupdateperiod(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.intsizeof()Returnssizeof(struct).intstreamingscheduledelay(int value) Sets the specified value to thestreamingscheduledelayfield.intstudioupdateperiod(int value) Sets the specified value to thestudioupdateperiodfield.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. -
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_ADVANCEDSETTINGSinstance 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_ADVANCEDSETTINGS>
-
cbsize
public int cbsize()- Returns:
- the value of the
cbsizefield.
-
commandqueuesize
public int commandqueuesize()- Returns:
- the value of the
commandqueuesizefield.
-
handleinitialsize
public int handleinitialsize()- Returns:
- the value of the
handleinitialsizefield.
-
studioupdateperiod
public int studioupdateperiod()- Returns:
- the value of the
studioupdateperiodfield.
-
idlesampledatapoolsize
public int idlesampledatapoolsize()- Returns:
- the value of the
idlesampledatapoolsizefield.
-
streamingscheduledelay
public int streamingscheduledelay()- Returns:
- the value of the
streamingscheduledelayfield.
-
encryptionkey
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theencryptionkeyfield.
-
encryptionkeyString
- Returns:
- the null-terminated string pointed to by the
encryptionkeyfield.
-
cbsize
Sets the specified value to thecbsizefield. -
commandqueuesize
Sets the specified value to thecommandqueuesizefield. -
handleinitialsize
Sets the specified value to thehandleinitialsizefield. -
studioupdateperiod
Sets the specified value to thestudioupdateperiodfield. -
idlesampledatapoolsize
Sets the specified value to theidlesampledatapoolsizefield. -
streamingscheduledelay
Sets the specified value to thestreamingscheduledelayfield. -
encryptionkey
Sets the address of the specified encoded string to theencryptionkeyfield. -
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_ADVANCEDSETTINGSinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGSinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_ADVANCEDSETTINGS.Bufferinstance allocated on the specifiedMemoryStackand 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
-