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.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.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_INFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_DSP_METERING_INFOcalloc()Returns a newFMOD_DSP_METERING_INFOinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_METERING_INFOcalloc(MemoryStack stack) Returns a newFMOD_DSP_METERING_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_METERING_INFOcreate()Returns a newFMOD_DSP_METERING_INFOinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withBufferUtils.static FMOD_DSP_METERING_INFOcreate(long address) Returns a newFMOD_DSP_METERING_INFOinstance for the specified memory address.create(long address, int capacity) Create aFMOD_DSP_METERING_INFO.Bufferinstance at the specified memory.static @Nullable FMOD_DSP_METERING_INFOcreateSafe(long address) static @Nullable FMOD_DSP_METERING_INFO.BuffercreateSafe(long address, int capacity) static FMOD_DSP_METERING_INFOmalloc()Returns a newFMOD_DSP_METERING_INFOinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_DSP_METERING_INFOmalloc(MemoryStack stack) Returns a newFMOD_DSP_METERING_INFOinstance allocated on the specifiedMemoryStack.static shortnnumchannels(long struct) Unsafe version ofnumchannels().static voidnnumchannels(long struct, short value) Unsafe version ofnumchannels.static intnnumsamples(long struct) Unsafe version ofnumsamples().static voidnnumsamples(long struct, int value) Unsafe version ofnumsamples.static FloatBuffernpeaklevel(long struct) Unsafe version ofpeaklevel().static floatnpeaklevel(long struct, int index) Unsafe version ofpeaklevel.static voidnpeaklevel(long struct, int index, float value) Unsafe version ofpeaklevel.static voidnpeaklevel(long struct, FloatBuffer value) Unsafe version ofpeaklevel.static FloatBuffernrmslevel(long struct) Unsafe version ofrmslevel().static floatnrmslevel(long struct, int index) Unsafe version ofrmslevel.static voidnrmslevel(long struct, int index, float value) Unsafe version ofrmslevel.static voidnrmslevel(long struct, FloatBuffer value) Unsafe version ofrmslevel.shortnumchannels(short value) Sets the specified value to thenumchannelsfield.intnumsamples(int value) Sets the specified value to thenumsamplesfield.floatpeaklevel(int index) peaklevel(int index, float value) Sets the specified value at the specified index of thepeaklevelfield.peaklevel(FloatBuffer value) Copies the specifiedFloatBufferto thepeaklevelfield.rmslevel()floatrmslevel(int index) rmslevel(int index, float value) Sets the specified value at the specified index of thermslevelfield.rmslevel(FloatBuffer value) Copies the specifiedFloatBufferto thermslevelfield.set(int numsamples, FloatBuffer peaklevel, FloatBuffer rmslevel, short numchannels) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
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_INFOinstance 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_DSP_METERING_INFO>
-
numsamples
public int numsamples()- Returns:
- the value of the
numsamplesfield.
-
peaklevel
- Returns:
- a
FloatBufferview of thepeaklevelfield.
-
peaklevel
public float peaklevel(int index) - Returns:
- the value at the specified index of the
peaklevelfield.
-
rmslevel
- Returns:
- a
FloatBufferview of thermslevelfield.
-
rmslevel
public float rmslevel(int index) - Returns:
- the value at the specified index of the
rmslevelfield.
-
numchannels
public short numchannels()- Returns:
- the value of the
numchannelsfield.
-
numsamples
Sets the specified value to thenumsamplesfield. -
peaklevel
Copies the specifiedFloatBufferto thepeaklevelfield. -
peaklevel
Sets the specified value at the specified index of thepeaklevelfield. -
rmslevel
Copies the specifiedFloatBufferto thermslevelfield. -
rmslevel
Sets the specified value at the specified index of thermslevelfield. -
numchannels
Sets the specified value to thenumchannelsfield. -
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_INFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_METERING_INFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_METERING_INFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_DSP_METERING_INFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_DSP_METERING_INFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_METERING_INFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_METERING_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_METERING_INFO.Bufferinstance allocated on the specifiedMemoryStackand 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.
-