Package org.lwjgl.fmod
Class FMOD_CPU_USAGE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_CPU_USAGE {
float dsp;
float stream;
float geometry;
float update;
float convolution1;
float convolution2;
}-
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 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_CPU_USAGE(ByteBuffer container) Creates aFMOD_CPU_USAGEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CPU_USAGEcalloc()Returns a newFMOD_CPU_USAGEinstance allocated withmemCalloc.static FMOD_CPU_USAGE.Buffercalloc(int capacity) Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withmemCalloc.static FMOD_CPU_USAGE.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_CPU_USAGE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CPU_USAGEcalloc(MemoryStack stack) Returns a newFMOD_CPU_USAGEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatconvolution1(float value) Sets the specified value to theconvolution1field.floatconvolution2(float value) Sets the specified value to theconvolution2field.static FMOD_CPU_USAGEcreate()Returns a newFMOD_CPU_USAGEinstance allocated withBufferUtils.static FMOD_CPU_USAGE.Buffercreate(int capacity) Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withBufferUtils.static FMOD_CPU_USAGEcreate(long address) Returns a newFMOD_CPU_USAGEinstance for the specified memory address.static FMOD_CPU_USAGE.Buffercreate(long address, int capacity) Create aFMOD_CPU_USAGE.Bufferinstance at the specified memory.static @Nullable FMOD_CPU_USAGEcreateSafe(long address) static @Nullable FMOD_CPU_USAGE.BuffercreateSafe(long address, int capacity) floatdsp()dsp(float value) Sets the specified value to thedspfield.floatgeometry()geometry(float value) Sets the specified value to thegeometryfield.static FMOD_CPU_USAGEmalloc()Returns a newFMOD_CPU_USAGEinstance allocated withmemAlloc.static FMOD_CPU_USAGE.Buffermalloc(int capacity) Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withmemAlloc.static FMOD_CPU_USAGE.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_CPU_USAGE.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_CPU_USAGEmalloc(MemoryStack stack) Returns a newFMOD_CPU_USAGEinstance allocated on the specifiedMemoryStack.static floatnconvolution1(long struct) Unsafe version ofconvolution1().static voidnconvolution1(long struct, float value) Unsafe version ofconvolution1.static floatnconvolution2(long struct) Unsafe version ofconvolution2().static voidnconvolution2(long struct, float value) Unsafe version ofconvolution2.static floatndsp(long struct) Unsafe version ofdsp().static voidndsp(long struct, float value) Unsafe version ofdsp.static floatngeometry(long struct) Unsafe version ofgeometry().static voidngeometry(long struct, float value) Unsafe version ofgeometry.static floatnstream$(long struct) Unsafe version ofstream$().static voidnstream$(long struct, float value) Unsafe version ofstream$.static floatnupdate(long struct) Unsafe version ofupdate().static voidnupdate(long struct, float value) Unsafe version ofupdate.set(float dsp, float stream$, float geometry, float update, float convolution1, float convolution2) Initializes this struct with the specified values.set(FMOD_CPU_USAGE src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).floatstream$()stream$(float value) Sets the specified value to thestreamfield.floatupdate()update(float value) Sets the specified value to theupdatefield.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. -
DSP
public static final int DSPThe struct member offsets. -
STREAM
public static final int STREAMThe struct member offsets. -
GEOMETRY
public static final int GEOMETRYThe struct member offsets. -
UPDATE
public static final int UPDATEThe struct member offsets. -
CONVOLUTION1
public static final int CONVOLUTION1The struct member offsets. -
CONVOLUTION2
public static final int CONVOLUTION2The struct member offsets.
-
-
Constructor Details
-
FMOD_CPU_USAGE
Creates aFMOD_CPU_USAGEinstance 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_CPU_USAGE>
-
dsp
public float dsp()- Returns:
- the value of the
dspfield.
-
stream$
public float stream$()- Returns:
- the value of the
streamfield.
-
geometry
public float geometry()- Returns:
- the value of the
geometryfield.
-
update
public float update()- Returns:
- the value of the
updatefield.
-
convolution1
public float convolution1()- Returns:
- the value of the
convolution1field.
-
convolution2
public float convolution2()- Returns:
- the value of the
convolution2field.
-
dsp
Sets the specified value to thedspfield. -
stream$
Sets the specified value to thestreamfield. -
geometry
Sets the specified value to thegeometryfield. -
update
Sets the specified value to theupdatefield. -
convolution1
Sets the specified value to theconvolution1field. -
convolution2
Sets the specified value to theconvolution2field. -
set
public FMOD_CPU_USAGE set(float dsp, float stream$, float geometry, float update, float convolution1, float convolution2) 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_CPU_USAGEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CPU_USAGEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_CPU_USAGEinstance allocated withBufferUtils. -
create
Returns a newFMOD_CPU_USAGEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_CPU_USAGE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_CPU_USAGE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CPU_USAGEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_CPU_USAGEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_CPU_USAGE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_CPU_USAGE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ndsp
public static float ndsp(long struct) Unsafe version ofdsp(). -
nstream$
public static float nstream$(long struct) Unsafe version ofstream$(). -
ngeometry
public static float ngeometry(long struct) Unsafe version ofgeometry(). -
nupdate
public static float nupdate(long struct) Unsafe version ofupdate(). -
nconvolution1
public static float nconvolution1(long struct) Unsafe version ofconvolution1(). -
nconvolution2
public static float nconvolution2(long struct) Unsafe version ofconvolution2(). -
ndsp
public static void ndsp(long struct, float value) Unsafe version ofdsp. -
nstream$
public static void nstream$(long struct, float value) Unsafe version ofstream$. -
ngeometry
public static void ngeometry(long struct, float value) Unsafe version ofgeometry. -
nupdate
public static void nupdate(long struct, float value) Unsafe version ofupdate. -
nconvolution1
public static void nconvolution1(long struct, float value) Unsafe version ofconvolution1. -
nconvolution2
public static void nconvolution2(long struct, float value) Unsafe version ofconvolution2.
-