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.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 member offsets.static final int
The 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_SUBSOUND
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FSBANK_SUBSOUND
calloc()
Returns a newFSBANK_SUBSOUND
instance allocated withmemCalloc
.static FSBANK_SUBSOUND.Buffer
calloc
(int capacity) Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withmemCalloc
.static FSBANK_SUBSOUND.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFSBANK_SUBSOUND.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FSBANK_SUBSOUND
calloc
(MemoryStack stack) Returns a newFSBANK_SUBSOUND
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FSBANK_SUBSOUND
create()
Returns a newFSBANK_SUBSOUND
instance allocated withBufferUtils
.static FSBANK_SUBSOUND.Buffer
create
(int capacity) Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withBufferUtils
.static FSBANK_SUBSOUND
create
(long address) Returns a newFSBANK_SUBSOUND
instance for the specified memory address.static FSBANK_SUBSOUND.Buffer
create
(long address, int capacity) Create aFSBANK_SUBSOUND.Buffer
instance at the specified memory.static @Nullable FSBANK_SUBSOUND
createSafe
(long address) static @Nullable FSBANK_SUBSOUND.Buffer
createSafe
(long address, int capacity) float
desiredSampleRate
(float value) Sets the specified value to thedesiredSampleRate
field.fileData()
fileData
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thefileData
field.fileDataLengths
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thefileDataLengths
field.fileNames
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thefileNames
field.static FSBANK_SUBSOUND
malloc()
Returns a newFSBANK_SUBSOUND
instance allocated withmemAlloc
.static FSBANK_SUBSOUND.Buffer
malloc
(int capacity) Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withmemAlloc
.static FSBANK_SUBSOUND.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFSBANK_SUBSOUND.Buffer
instance allocated on the specifiedMemoryStack
.static FSBANK_SUBSOUND
malloc
(MemoryStack stack) Returns a newFSBANK_SUBSOUND
instance allocated on the specifiedMemoryStack
.static float
ndesiredSampleRate
(long struct) Unsafe version ofdesiredSampleRate()
.static void
ndesiredSampleRate
(long struct, float value) Unsafe version ofdesiredSampleRate
.static PointerBuffer
nfileData
(long struct) Unsafe version offileData
.static void
nfileData
(long struct, PointerBuffer value) Unsafe version offileData
.static IntBuffer
nfileDataLengths
(long struct) Unsafe version offileDataLengths
.static void
nfileDataLengths
(long struct, IntBuffer value) Unsafe version offileDataLengths
.static PointerBuffer
nfileNames
(long struct) Unsafe version offileNames
.static void
nfileNames
(long struct, PointerBuffer value) Unsafe version offileNames
.static int
nnumFiles
(long struct) Unsafe version ofnumFiles()
.static void
nnumFiles
(long struct, int value) Sets the specified value to thenumFiles
field of the specifiedstruct
.static int
noverrideFlags
(long struct) Unsafe version ofoverrideFlags()
.static void
noverrideFlags
(long struct, int value) Unsafe version ofoverrideFlags
.static int
noverrideQuality
(long struct) Unsafe version ofoverrideQuality()
.static void
noverrideQuality
(long struct, int value) Unsafe version ofoverrideQuality
.static float
npercentOptimizedRate
(long struct) Unsafe version ofpercentOptimizedRate()
.static void
npercentOptimizedRate
(long struct, float value) Unsafe version ofpercentOptimizedRate
.int
numFiles()
numFiles
(int value) Sets the specified value to thenumFiles
field.int
overrideFlags
(int value) Sets the specified value to theoverrideFlags
field.int
overrideQuality
(int value) Sets the specified value to theoverrideQuality
field.float
percentOptimizedRate
(float value) Sets the specified value to thepercentOptimizedRate
field.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.int
sizeof()
Returnssizeof(struct)
.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. -
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_SUBSOUND
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<FSBANK_SUBSOUND>
-
fileNames
- Returns:
- a
PointerBuffer
view of the data pointed to by thefileNames
field.
-
fileData
- Returns:
- a
PointerBuffer
view of the data pointed to by thefileData
field.
-
fileDataLengths
- Returns:
- a
IntBuffer
view of the data pointed to by thefileDataLengths
field.
-
numFiles
public int numFiles()- Returns:
- the value of the
numFiles
field.
-
overrideFlags
public int overrideFlags()- Returns:
- the value of the
overrideFlags
field.
-
overrideQuality
public int overrideQuality()- Returns:
- the value of the
overrideQuality
field.
-
desiredSampleRate
public float desiredSampleRate()- Returns:
- the value of the
desiredSampleRate
field.
-
percentOptimizedRate
public float percentOptimizedRate()- Returns:
- the value of the
percentOptimizedRate
field.
-
fileNames
Sets the address of the specifiedPointerBuffer
to thefileNames
field. -
fileData
Sets the address of the specifiedPointerBuffer
to thefileData
field. -
fileDataLengths
Sets the address of the specifiedIntBuffer
to thefileDataLengths
field. -
numFiles
Sets the specified value to thenumFiles
field. -
overrideFlags
Sets the specified value to theoverrideFlags
field. -
overrideQuality
Sets the specified value to theoverrideQuality
field. -
desiredSampleRate
Sets the specified value to thedesiredSampleRate
field. -
percentOptimizedRate
Sets the specified value to thepercentOptimizedRate
field. -
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_SUBSOUND
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFSBANK_SUBSOUND
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFSBANK_SUBSOUND
instance allocated withBufferUtils
. -
create
Returns a newFSBANK_SUBSOUND
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFSBANK_SUBSOUND.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFSBANK_SUBSOUND.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFSBANK_SUBSOUND
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFSBANK_SUBSOUND
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFSBANK_SUBSOUND.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFSBANK_SUBSOUND.Buffer
instance allocated on the specifiedMemoryStack
and 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 thenumFiles
field 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
-