Package org.lwjgl.fmod
Class FSBANK_SUBSOUND
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FSBANK_SUBSOUND {
char const * const * fileNames;
void const * const * fileData;
unsigned int const * fileDataLengths;
unsigned int numFiles;
FSBANK_BUILDFLAGS overrideFlags;
unsigned int overrideQuality;
float desiredSampleRate;
float percentOptimizedRate;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFSBANK_SUBSOUND(ByteBuffer container) Creates aFSBANK_SUBSOUNDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FSBANK_SUBSOUNDcalloc()Returns a newFSBANK_SUBSOUNDinstance allocated withmemCalloc.static FSBANK_SUBSOUND.Buffercalloc(int capacity) Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withmemCalloc.static FSBANK_SUBSOUND.Buffercalloc(int capacity, MemoryStack stack) Returns a newFSBANK_SUBSOUND.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_SUBSOUNDcalloc(MemoryStack stack) Returns a newFSBANK_SUBSOUNDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FSBANK_SUBSOUNDcreate()Returns a newFSBANK_SUBSOUNDinstance allocated withBufferUtils.static FSBANK_SUBSOUND.Buffercreate(int capacity) Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withBufferUtils.static FSBANK_SUBSOUNDcreate(long address) Returns a newFSBANK_SUBSOUNDinstance for the specified memory address.static FSBANK_SUBSOUND.Buffercreate(long address, int capacity) Create aFSBANK_SUBSOUND.Bufferinstance at the specified memory.static @Nullable FSBANK_SUBSOUNDcreateSafe(long address) static @Nullable FSBANK_SUBSOUND.BuffercreateSafe(long address, int capacity) floatdesiredSampleRate(float value) Sets the specified value to thedesiredSampleRatefield.fileData()fileData(PointerBuffer value) Sets the address of the specifiedPointerBufferto thefileDatafield.fileDataLengths(IntBuffer value) Sets the address of the specifiedIntBufferto thefileDataLengthsfield.fileNames(PointerBuffer value) Sets the address of the specifiedPointerBufferto thefileNamesfield.static FSBANK_SUBSOUNDmalloc()Returns a newFSBANK_SUBSOUNDinstance allocated withmemAlloc.static FSBANK_SUBSOUND.Buffermalloc(int capacity) Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withmemAlloc.static FSBANK_SUBSOUND.Buffermalloc(int capacity, MemoryStack stack) Returns a newFSBANK_SUBSOUND.Bufferinstance allocated on the specifiedMemoryStack.static FSBANK_SUBSOUNDmalloc(MemoryStack stack) Returns a newFSBANK_SUBSOUNDinstance allocated on the specifiedMemoryStack.static floatndesiredSampleRate(long struct) Unsafe version ofdesiredSampleRate().static voidndesiredSampleRate(long struct, float value) Unsafe version ofdesiredSampleRate.static PointerBuffernfileData(long struct) Unsafe version offileData.static voidnfileData(long struct, PointerBuffer value) Unsafe version offileData.static IntBuffernfileDataLengths(long struct) Unsafe version offileDataLengths.static voidnfileDataLengths(long struct, IntBuffer value) Unsafe version offileDataLengths.static PointerBuffernfileNames(long struct) Unsafe version offileNames.static voidnfileNames(long struct, PointerBuffer value) Unsafe version offileNames.static intnnumFiles(long struct) Unsafe version ofnumFiles().static voidnnumFiles(long struct, int value) Sets the specified value to thenumFilesfield of the specifiedstruct.static intnoverrideFlags(long struct) Unsafe version ofoverrideFlags().static voidnoverrideFlags(long struct, int value) Unsafe version ofoverrideFlags.static intnoverrideQuality(long struct) Unsafe version ofoverrideQuality().static voidnoverrideQuality(long struct, int value) Unsafe version ofoverrideQuality.static floatnpercentOptimizedRate(long struct) Unsafe version ofpercentOptimizedRate().static voidnpercentOptimizedRate(long struct, float value) Unsafe version ofpercentOptimizedRate.intnumFiles()numFiles(int value) Sets the specified value to thenumFilesfield.intoverrideFlags(int value) Sets the specified value to theoverrideFlagsfield.intoverrideQuality(int value) Sets the specified value to theoverrideQualityfield.floatpercentOptimizedRate(float value) Sets the specified value to thepercentOptimizedRatefield.set(FSBANK_SUBSOUND src) Copies the specified struct data to this struct.set(PointerBuffer fileNames, PointerBuffer fileData, IntBuffer fileDataLengths, int numFiles, int overrideFlags, int overrideQuality, float desiredSampleRate, float percentOptimizedRate) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).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. -
FILENAMES
public static final int FILENAMESThe struct member offsets. -
FILEDATA
public static final int FILEDATAThe struct member offsets. -
FILEDATALENGTHS
public static final int FILEDATALENGTHSThe struct member offsets. -
NUMFILES
public static final int NUMFILESThe struct member offsets. -
OVERRIDEFLAGS
public static final int OVERRIDEFLAGSThe struct member offsets. -
OVERRIDEQUALITY
public static final int OVERRIDEQUALITYThe struct member offsets. -
DESIREDSAMPLERATE
public static final int DESIREDSAMPLERATEThe struct member offsets. -
PERCENTOPTIMIZEDRATE
public static final int PERCENTOPTIMIZEDRATEThe struct member offsets.
-
-
Constructor Details
-
FSBANK_SUBSOUND
Creates aFSBANK_SUBSOUNDinstance 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<FSBANK_SUBSOUND>
-
fileNames
- Returns:
- a
PointerBufferview of the data pointed to by thefileNamesfield.
-
fileData
- Returns:
- a
PointerBufferview of the data pointed to by thefileDatafield.
-
fileDataLengths
- Returns:
- a
IntBufferview of the data pointed to by thefileDataLengthsfield.
-
numFiles
public int numFiles()- Returns:
- the value of the
numFilesfield.
-
overrideFlags
public int overrideFlags()- Returns:
- the value of the
overrideFlagsfield.
-
overrideQuality
public int overrideQuality()- Returns:
- the value of the
overrideQualityfield.
-
desiredSampleRate
public float desiredSampleRate()- Returns:
- the value of the
desiredSampleRatefield.
-
percentOptimizedRate
public float percentOptimizedRate()- Returns:
- the value of the
percentOptimizedRatefield.
-
fileNames
Sets the address of the specifiedPointerBufferto thefileNamesfield. -
fileData
Sets the address of the specifiedPointerBufferto thefileDatafield. -
fileDataLengths
Sets the address of the specifiedIntBufferto thefileDataLengthsfield. -
numFiles
Sets the specified value to thenumFilesfield. -
overrideFlags
Sets the specified value to theoverrideFlagsfield. -
overrideQuality
Sets the specified value to theoverrideQualityfield. -
desiredSampleRate
Sets the specified value to thedesiredSampleRatefield. -
percentOptimizedRate
Sets the specified value to thepercentOptimizedRatefield. -
set
public FSBANK_SUBSOUND set(PointerBuffer fileNames, PointerBuffer fileData, IntBuffer fileDataLengths, int numFiles, int overrideFlags, int overrideQuality, float desiredSampleRate, float percentOptimizedRate) 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 newFSBANK_SUBSOUNDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFSBANK_SUBSOUNDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFSBANK_SUBSOUNDinstance allocated withBufferUtils. -
create
Returns a newFSBANK_SUBSOUNDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFSBANK_SUBSOUND.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFSBANK_SUBSOUND.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFSBANK_SUBSOUNDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFSBANK_SUBSOUNDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFSBANK_SUBSOUND.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFSBANK_SUBSOUND.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nfileNames
Unsafe version offileNames. -
nfileData
Unsafe version offileData. -
nfileDataLengths
Unsafe version offileDataLengths. -
nnumFiles
public static int nnumFiles(long struct) Unsafe version ofnumFiles(). -
noverrideFlags
public static int noverrideFlags(long struct) Unsafe version ofoverrideFlags(). -
noverrideQuality
public static int noverrideQuality(long struct) Unsafe version ofoverrideQuality(). -
ndesiredSampleRate
public static float ndesiredSampleRate(long struct) Unsafe version ofdesiredSampleRate(). -
npercentOptimizedRate
public static float npercentOptimizedRate(long struct) Unsafe version ofpercentOptimizedRate(). -
nfileNames
Unsafe version offileNames. -
nfileData
Unsafe version offileData. -
nfileDataLengths
Unsafe version offileDataLengths. -
nnumFiles
public static void nnumFiles(long struct, int value) Sets the specified value to thenumFilesfield of the specifiedstruct. -
noverrideFlags
public static void noverrideFlags(long struct, int value) Unsafe version ofoverrideFlags. -
noverrideQuality
public static void noverrideQuality(long struct, int value) Unsafe version ofoverrideQuality. -
ndesiredSampleRate
public static void ndesiredSampleRate(long struct, float value) Unsafe version ofdesiredSampleRate. -
npercentOptimizedRate
public static void npercentOptimizedRate(long struct, float value) Unsafe version ofpercentOptimizedRate. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-