Package org.lwjgl.fmod
Class FMOD_DSP_METERING_INFO
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_DSP_METERING_INFO
extends Struct<FMOD_DSP_METERING_INFO>
implements NativeResource
struct FMOD_DSP_METERING_INFO {
int numsamples;
float peaklevel[32];
float rmslevel[32];
short numchannels;
}
-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFMOD_DSP_METERING_INFO
(ByteBuffer container) Creates aFMOD_DSP_METERING_INFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_DSP_METERING_INFO
calloc()
Returns a newFMOD_DSP_METERING_INFO
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_METERING_INFO
calloc
(MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_METERING_INFO
create()
Returns a newFMOD_DSP_METERING_INFO
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withBufferUtils
.static FMOD_DSP_METERING_INFO
create
(long address) Returns a newFMOD_DSP_METERING_INFO
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_DSP_METERING_INFO.Buffer
instance at the specified memory.static @Nullable FMOD_DSP_METERING_INFO
createSafe
(long address) static @Nullable FMOD_DSP_METERING_INFO.Buffer
createSafe
(long address, int capacity) static FMOD_DSP_METERING_INFO
malloc()
Returns a newFMOD_DSP_METERING_INFO
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_DSP_METERING_INFO
malloc
(MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO
instance allocated on the specifiedMemoryStack
.static short
nnumchannels
(long struct) Unsafe version ofnumchannels()
.static void
nnumchannels
(long struct, short value) Unsafe version ofnumchannels
.static int
nnumsamples
(long struct) Unsafe version ofnumsamples()
.static void
nnumsamples
(long struct, int value) Unsafe version ofnumsamples
.static FloatBuffer
npeaklevel
(long struct) Unsafe version ofpeaklevel()
.static float
npeaklevel
(long struct, int index) Unsafe version ofpeaklevel
.static void
npeaklevel
(long struct, int index, float value) Unsafe version ofpeaklevel
.static void
npeaklevel
(long struct, FloatBuffer value) Unsafe version ofpeaklevel
.static FloatBuffer
nrmslevel
(long struct) Unsafe version ofrmslevel()
.static float
nrmslevel
(long struct, int index) Unsafe version ofrmslevel
.static void
nrmslevel
(long struct, int index, float value) Unsafe version ofrmslevel
.static void
nrmslevel
(long struct, FloatBuffer value) Unsafe version ofrmslevel
.short
numchannels
(short value) Sets the specified value to thenumchannels
field.int
numsamples
(int value) Sets the specified value to thenumsamples
field.float
peaklevel
(int index) peaklevel
(int index, float value) Sets the specified value at the specified index of thepeaklevel
field.peaklevel
(FloatBuffer value) Copies the specifiedFloatBuffer
to thepeaklevel
field.rmslevel()
float
rmslevel
(int index) rmslevel
(int index, float value) Sets the specified value at the specified index of thermslevel
field.rmslevel
(FloatBuffer value) Copies the specifiedFloatBuffer
to thermslevel
field.set
(int numsamples, FloatBuffer peaklevel, FloatBuffer rmslevel, short numchannels) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
NUMSAMPLES
public static final int NUMSAMPLESThe struct member offsets. -
PEAKLEVEL
public static final int PEAKLEVELThe struct member offsets. -
RMSLEVEL
public static final int RMSLEVELThe struct member offsets. -
NUMCHANNELS
public static final int NUMCHANNELSThe struct member offsets.
-
-
Constructor Details
-
FMOD_DSP_METERING_INFO
Creates aFMOD_DSP_METERING_INFO
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_DSP_METERING_INFO>
-
numsamples
public int numsamples()- Returns:
- the value of the
numsamples
field.
-
peaklevel
- Returns:
- a
FloatBuffer
view of thepeaklevel
field.
-
peaklevel
public float peaklevel(int index) - Returns:
- the value at the specified index of the
peaklevel
field.
-
rmslevel
- Returns:
- a
FloatBuffer
view of thermslevel
field.
-
rmslevel
public float rmslevel(int index) - Returns:
- the value at the specified index of the
rmslevel
field.
-
numchannels
public short numchannels()- Returns:
- the value of the
numchannels
field.
-
numsamples
Sets the specified value to thenumsamples
field. -
peaklevel
Copies the specifiedFloatBuffer
to thepeaklevel
field. -
peaklevel
Sets the specified value at the specified index of thepeaklevel
field. -
rmslevel
Copies the specifiedFloatBuffer
to thermslevel
field. -
rmslevel
Sets the specified value at the specified index of thermslevel
field. -
numchannels
Sets the specified value to thenumchannels
field. -
set
public FMOD_DSP_METERING_INFO set(int numsamples, FloatBuffer peaklevel, FloatBuffer rmslevel, short numchannels) 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_DSP_METERING_INFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_METERING_INFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_METERING_INFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_DSP_METERING_INFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_DSP_METERING_INFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_METERING_INFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_METERING_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_METERING_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnumsamples
public static int nnumsamples(long struct) Unsafe version ofnumsamples()
. -
npeaklevel
Unsafe version ofpeaklevel()
. -
npeaklevel
public static float npeaklevel(long struct, int index) Unsafe version ofpeaklevel
. -
nrmslevel
Unsafe version ofrmslevel()
. -
nrmslevel
public static float nrmslevel(long struct, int index) Unsafe version ofrmslevel
. -
nnumchannels
public static short nnumchannels(long struct) Unsafe version ofnumchannels()
. -
nnumsamples
public static void nnumsamples(long struct, int value) Unsafe version ofnumsamples
. -
npeaklevel
Unsafe version ofpeaklevel
. -
npeaklevel
public static void npeaklevel(long struct, int index, float value) Unsafe version ofpeaklevel
. -
nrmslevel
Unsafe version ofrmslevel
. -
nrmslevel
public static void nrmslevel(long struct, int index, float value) Unsafe version ofrmslevel
. -
nnumchannels
public static void nnumchannels(long struct, short value) Unsafe version ofnumchannels
.
-