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.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 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_CPU_USAGE
(ByteBuffer container) Creates aFMOD_CPU_USAGE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CPU_USAGE
calloc()
Returns a newFMOD_CPU_USAGE
instance allocated withmemCalloc
.static FMOD_CPU_USAGE.Buffer
calloc
(int capacity) Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withmemCalloc
.static FMOD_CPU_USAGE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_CPU_USAGE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CPU_USAGE
calloc
(MemoryStack stack) Returns a newFMOD_CPU_USAGE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.float
convolution1
(float value) Sets the specified value to theconvolution1
field.float
convolution2
(float value) Sets the specified value to theconvolution2
field.static FMOD_CPU_USAGE
create()
Returns a newFMOD_CPU_USAGE
instance allocated withBufferUtils
.static FMOD_CPU_USAGE.Buffer
create
(int capacity) Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withBufferUtils
.static FMOD_CPU_USAGE
create
(long address) Returns a newFMOD_CPU_USAGE
instance for the specified memory address.static FMOD_CPU_USAGE.Buffer
create
(long address, int capacity) Create aFMOD_CPU_USAGE.Buffer
instance at the specified memory.static @Nullable FMOD_CPU_USAGE
createSafe
(long address) static @Nullable FMOD_CPU_USAGE.Buffer
createSafe
(long address, int capacity) float
dsp()
dsp
(float value) Sets the specified value to thedsp
field.float
geometry()
geometry
(float value) Sets the specified value to thegeometry
field.static FMOD_CPU_USAGE
malloc()
Returns a newFMOD_CPU_USAGE
instance allocated withmemAlloc
.static FMOD_CPU_USAGE.Buffer
malloc
(int capacity) Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withmemAlloc
.static FMOD_CPU_USAGE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_CPU_USAGE.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_CPU_USAGE
malloc
(MemoryStack stack) Returns a newFMOD_CPU_USAGE
instance allocated on the specifiedMemoryStack
.static float
nconvolution1
(long struct) Unsafe version ofconvolution1()
.static void
nconvolution1
(long struct, float value) Unsafe version ofconvolution1
.static float
nconvolution2
(long struct) Unsafe version ofconvolution2()
.static void
nconvolution2
(long struct, float value) Unsafe version ofconvolution2
.static float
ndsp
(long struct) Unsafe version ofdsp()
.static void
ndsp
(long struct, float value) Unsafe version ofdsp
.static float
ngeometry
(long struct) Unsafe version ofgeometry()
.static void
ngeometry
(long struct, float value) Unsafe version ofgeometry
.static float
nstream$
(long struct) Unsafe version ofstream$()
.static void
nstream$
(long struct, float value) Unsafe version ofstream$
.static float
nupdate
(long struct) Unsafe version ofupdate()
.static void
nupdate
(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.int
sizeof()
Returnssizeof(struct)
.float
stream$()
stream$
(float value) Sets the specified value to thestream
field.float
update()
update
(float value) Sets the specified value to theupdate
field.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. -
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_USAGE
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_CPU_USAGE>
-
dsp
public float dsp()- Returns:
- the value of the
dsp
field.
-
stream$
public float stream$()- Returns:
- the value of the
stream
field.
-
geometry
public float geometry()- Returns:
- the value of the
geometry
field.
-
update
public float update()- Returns:
- the value of the
update
field.
-
convolution1
public float convolution1()- Returns:
- the value of the
convolution1
field.
-
convolution2
public float convolution2()- Returns:
- the value of the
convolution2
field.
-
dsp
Sets the specified value to thedsp
field. -
stream$
Sets the specified value to thestream
field. -
geometry
Sets the specified value to thegeometry
field. -
update
Sets the specified value to theupdate
field. -
convolution1
Sets the specified value to theconvolution1
field. -
convolution2
Sets the specified value to theconvolution2
field. -
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_USAGE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CPU_USAGE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_CPU_USAGE
instance allocated withBufferUtils
. -
create
Returns a newFMOD_CPU_USAGE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_CPU_USAGE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_CPU_USAGE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CPU_USAGE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CPU_USAGE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_CPU_USAGE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CPU_USAGE.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-