Class FMOD_CPU_USAGE

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_CPU_USAGE extends Struct<FMOD_CPU_USAGE> implements NativeResource

 struct FMOD_CPU_USAGE {
     float dsp;
     float stream;
     float geometry;
     float update;
     float convolution1;
     float convolution2;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DSP
      The struct member offsets.
    • STREAM

      public static final int STREAM
      The struct member offsets.
    • GEOMETRY

      public static final int GEOMETRY
      The struct member offsets.
    • UPDATE

      public static final int UPDATE
      The struct member offsets.
    • CONVOLUTION1

      public static final int CONVOLUTION1
      The struct member offsets.
    • CONVOLUTION2

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

    • FMOD_CPU_USAGE

      public FMOD_CPU_USAGE(ByteBuffer container)
      Creates a FMOD_CPU_USAGE 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<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

      public FMOD_CPU_USAGE dsp(float value)
      Sets the specified value to the dsp field.
    • stream$

      public FMOD_CPU_USAGE stream$(float value)
      Sets the specified value to the stream field.
    • geometry

      public FMOD_CPU_USAGE geometry(float value)
      Sets the specified value to the geometry field.
    • update

      public FMOD_CPU_USAGE update(float value)
      Sets the specified value to the update field.
    • convolution1

      public FMOD_CPU_USAGE convolution1(float value)
      Sets the specified value to the convolution1 field.
    • convolution2

      public FMOD_CPU_USAGE convolution2(float value)
      Sets the specified value to the convolution2 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

      public FMOD_CPU_USAGE set(FMOD_CPU_USAGE src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static FMOD_CPU_USAGE.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new FMOD_CPU_USAGE.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
    • ndsp

      public static float ndsp(long struct)
      Unsafe version of dsp().
    • nstream$

      public static float nstream$(long struct)
      Unsafe version of stream$().
    • ngeometry

      public static float ngeometry(long struct)
      Unsafe version of geometry().
    • nupdate

      public static float nupdate(long struct)
      Unsafe version of update().
    • nconvolution1

      public static float nconvolution1(long struct)
      Unsafe version of convolution1().
    • nconvolution2

      public static float nconvolution2(long struct)
      Unsafe version of convolution2().
    • ndsp

      public static void ndsp(long struct, float value)
      Unsafe version of dsp.
    • nstream$

      public static void nstream$(long struct, float value)
      Unsafe version of stream$.
    • ngeometry

      public static void ngeometry(long struct, float value)
      Unsafe version of geometry.
    • nupdate

      public static void nupdate(long struct, float value)
      Unsafe version of update.
    • nconvolution1

      public static void nconvolution1(long struct, float value)
      Unsafe version of convolution1.
    • nconvolution2

      public static void nconvolution2(long struct, float value)
      Unsafe version of convolution2.