Class FMOD_DSP_METERING_INFO

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<FMOD_DSP_METERING_INFO>
org.lwjgl.fmod.FMOD_DSP_METERING_INFO
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class FMOD_DSP_METERING_INFO extends org.lwjgl.system.Struct<FMOD_DSP_METERING_INFO> implements org.lwjgl.system.NativeResource

Layout


 struct FMOD_DSP_METERING_INFO {
     int numsamples;
     float peaklevel[32];
     float rmslevel[32];
     short numchannels;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NUMSAMPLES

      public static final int NUMSAMPLES
      The struct member offsets.
    • PEAKLEVEL

      public static final int PEAKLEVEL
      The struct member offsets.
    • RMSLEVEL

      public static final int RMSLEVEL
      The struct member offsets.
    • NUMCHANNELS

      public static final int NUMCHANNELS
      The struct member offsets.
  • Constructor Details

    • FMOD_DSP_METERING_INFO

      public FMOD_DSP_METERING_INFO(ByteBuffer container)
      Creates a FMOD_DSP_METERING_INFO instance at the current position of the specified ByteBuffer 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<FMOD_DSP_METERING_INFO>
    • numsamples

      public int numsamples()
      Returns:
      the value of the numsamples field.
    • peaklevel

      public FloatBuffer peaklevel()
      Returns:
      a FloatBuffer view of the peaklevel field.
    • peaklevel

      public float peaklevel(int index)
      Returns:
      the value at the specified index of the peaklevel field.
    • rmslevel

      public FloatBuffer rmslevel()
      Returns:
      a FloatBuffer view of the rmslevel 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

      public FMOD_DSP_METERING_INFO numsamples(int value)
      Sets the specified value to the numsamples field.
    • peaklevel

      public FMOD_DSP_METERING_INFO peaklevel(FloatBuffer value)
      Copies the specified FloatBuffer to the peaklevel field.
    • peaklevel

      public FMOD_DSP_METERING_INFO peaklevel(int index, float value)
      Sets the specified value at the specified index of the peaklevel field.
    • rmslevel

      public FMOD_DSP_METERING_INFO rmslevel(FloatBuffer value)
      Copies the specified FloatBuffer to the rmslevel field.
    • rmslevel

      public FMOD_DSP_METERING_INFO rmslevel(int index, float value)
      Sets the specified value at the specified index of the rmslevel field.
    • numchannels

      public FMOD_DSP_METERING_INFO numchannels(short value)
      Sets the specified value to the numchannels 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

      public static FMOD_DSP_METERING_INFO malloc()
      Returns a new FMOD_DSP_METERING_INFO instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static FMOD_DSP_METERING_INFO calloc()
      Returns a new FMOD_DSP_METERING_INFO instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static FMOD_DSP_METERING_INFO create()
      Returns a new FMOD_DSP_METERING_INFO instance allocated with BufferUtils.
    • create

      public static FMOD_DSP_METERING_INFO create(long address)
      Returns a new FMOD_DSP_METERING_INFO instance for the specified memory address.
    • createSafe

      public static @Nullable FMOD_DSP_METERING_INFO createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static FMOD_DSP_METERING_INFO.Buffer malloc(int capacity)
      Returns a new FMOD_DSP_METERING_INFO.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static FMOD_DSP_METERING_INFO.Buffer calloc(int capacity)
      Returns a new FMOD_DSP_METERING_INFO.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FMOD_DSP_METERING_INFO.Buffer create(int capacity)
      Returns a new FMOD_DSP_METERING_INFO.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static FMOD_DSP_METERING_INFO.Buffer create(long address, int capacity)
      Create a FMOD_DSP_METERING_INFO.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable FMOD_DSP_METERING_INFO.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static FMOD_DSP_METERING_INFO malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_METERING_INFO instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static FMOD_DSP_METERING_INFO calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_METERING_INFO instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static FMOD_DSP_METERING_INFO.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_METERING_INFO.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FMOD_DSP_METERING_INFO.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_METERING_INFO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnumsamples

      public static int nnumsamples(long struct)
      Unsafe version of numsamples().
    • npeaklevel

      public static FloatBuffer npeaklevel(long struct)
      Unsafe version of peaklevel().
    • npeaklevel

      public static float npeaklevel(long struct, int index)
      Unsafe version of peaklevel.
    • nrmslevel

      public static FloatBuffer nrmslevel(long struct)
      Unsafe version of rmslevel().
    • nrmslevel

      public static float nrmslevel(long struct, int index)
      Unsafe version of rmslevel.
    • nnumchannels

      public static short nnumchannels(long struct)
      Unsafe version of numchannels().
    • nnumsamples

      public static void nnumsamples(long struct, int value)
      Unsafe version of numsamples.
    • npeaklevel

      public static void npeaklevel(long struct, FloatBuffer value)
      Unsafe version of peaklevel.
    • npeaklevel

      public static void npeaklevel(long struct, int index, float value)
      Unsafe version of peaklevel.
    • nrmslevel

      public static void nrmslevel(long struct, FloatBuffer value)
      Unsafe version of rmslevel.
    • nrmslevel

      public static void nrmslevel(long struct, int index, float value)
      Unsafe version of rmslevel.
    • nnumchannels

      public static void nnumchannels(long struct, short value)
      Unsafe version of numchannels.