Class FMOD_DSP_PARAMETER_FFT

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

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

Layout


 struct FMOD_DSP_PARAMETER_FFT {
     int length;
     int numchannels;
     float * spectrum[32];
 }
  • Field Details

    • SIZEOF

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

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

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

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

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

    • FMOD_DSP_PARAMETER_FFT

      public FMOD_DSP_PARAMETER_FFT(ByteBuffer container)
      Creates a FMOD_DSP_PARAMETER_FFT 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_PARAMETER_FFT>
    • length

      public int length()
      Returns:
      the value of the length field.
    • numchannels

      public int numchannels()
      Returns:
      the value of the numchannels field.
    • spectrum

      public org.lwjgl.PointerBuffer spectrum()
      Returns:
      a PointerBuffer view of the spectrum field.
    • spectrum

      public long spectrum(int index)
      Returns:
      the value at the specified index of the spectrum field.
    • length

      public FMOD_DSP_PARAMETER_FFT length(int value)
      Sets the specified value to the length field.
    • numchannels

      public FMOD_DSP_PARAMETER_FFT numchannels(int value)
      Sets the specified value to the numchannels field.
    • spectrum

      public FMOD_DSP_PARAMETER_FFT spectrum(org.lwjgl.PointerBuffer value)
      Copies the specified PointerBuffer to the spectrum field.
    • spectrum

      public FMOD_DSP_PARAMETER_FFT spectrum(int index, FloatBuffer value)
      Sets the specified value at the specified index of the spectrum field.
    • set

      public FMOD_DSP_PARAMETER_FFT set(int length, int numchannels, org.lwjgl.PointerBuffer spectrum)
      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_PARAMETER_FFT malloc()
      Returns a new FMOD_DSP_PARAMETER_FFT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static FMOD_DSP_PARAMETER_FFT calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_PARAMETER_FFT 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_PARAMETER_FFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_PARAMETER_FFT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static FMOD_DSP_PARAMETER_FFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new FMOD_DSP_PARAMETER_FFT.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
    • nlength

      public static int nlength(long struct)
      Unsafe version of length().
    • nnumchannels

      public static int nnumchannels(long struct)
      Unsafe version of numchannels().
    • nspectrum

      public static org.lwjgl.PointerBuffer nspectrum(long struct)
      Unsafe version of spectrum().
    • nspectrum

      public static long nspectrum(long struct, int index)
      Unsafe version of spectrum.
    • nlength

      public static void nlength(long struct, int value)
      Unsafe version of length.
    • nnumchannels

      public static void nnumchannels(long struct, int value)
      Unsafe version of numchannels.
    • nspectrum

      public static void nspectrum(long struct, org.lwjgl.PointerBuffer value)
      Unsafe version of spectrum.
    • nspectrum

      public static void nspectrum(long struct, int index, long value)
      Unsafe version of spectrum.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate