Class FMOD_DSP_STATE

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_DSP_STATE extends Struct<FMOD_DSP_STATE> implements NativeResource

 struct FMOD_DSP_STATE {
     void * instance;
     void * plugindata;
     FMOD_CHANNELMASK channelmask;
     FMOD_SPEAKERMODE source_speakermode;
     float * sidechaindata;
     int sidechainchannels;
     {@link FMOD_DSP_STATE_FUNCTIONS FMOD_DSP_STATE_FUNCTIONS} * functions;
     int systemobject;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int INSTANCE
      The struct member offsets.
    • PLUGINDATA

      public static final int PLUGINDATA
      The struct member offsets.
    • CHANNELMASK

      public static final int CHANNELMASK
      The struct member offsets.
    • SOURCE_SPEAKERMODE

      public static final int SOURCE_SPEAKERMODE
      The struct member offsets.
    • SIDECHAINDATA

      public static final int SIDECHAINDATA
      The struct member offsets.
    • SIDECHAINCHANNELS

      public static final int SIDECHAINCHANNELS
      The struct member offsets.
    • FUNCTIONS

      public static final int FUNCTIONS
      The struct member offsets.
    • SYSTEMOBJECT

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

    • FMOD_DSP_STATE

      public FMOD_DSP_STATE(ByteBuffer container)
      Creates a FMOD_DSP_STATE 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_DSP_STATE>
    • instance

      public long instance()
      Returns:
      the value of the instance field.
    • plugindata

      public long plugindata()
      Returns:
      the value of the plugindata field.
    • channelmask

      public int channelmask()
      Returns:
      the value of the channelmask field.
    • source_speakermode

      public int source_speakermode()
      Returns:
      the value of the source_speakermode field.
    • sidechaindata

      public FloatBuffer sidechaindata()
      Returns:
      a FloatBuffer view of the data pointed to by the sidechaindata field.
    • sidechainchannels

      public int sidechainchannels()
      Returns:
      the value of the sidechainchannels field.
    • functions

      public FMOD_DSP_STATE_FUNCTIONS functions()
      Returns:
      a FMOD_DSP_STATE_FUNCTIONS view of the struct pointed to by the functions field.
    • systemobject

      public int systemobject()
      Returns:
      the value of the systemobject field.
    • instance

      public FMOD_DSP_STATE instance(long value)
      Sets the specified value to the instance field.
    • plugindata

      public FMOD_DSP_STATE plugindata(long value)
      Sets the specified value to the plugindata field.
    • channelmask

      public FMOD_DSP_STATE channelmask(int value)
      Sets the specified value to the channelmask field.
    • source_speakermode

      public FMOD_DSP_STATE source_speakermode(int value)
      Sets the specified value to the source_speakermode field.
    • sidechaindata

      public FMOD_DSP_STATE sidechaindata(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the sidechaindata field.
    • functions

      public FMOD_DSP_STATE functions(FMOD_DSP_STATE_FUNCTIONS value)
      Sets the address of the specified FMOD_DSP_STATE_FUNCTIONS to the functions field.
    • systemobject

      public FMOD_DSP_STATE systemobject(int value)
      Sets the specified value to the systemobject field.
    • set

      public FMOD_DSP_STATE set(long instance, long plugindata, int channelmask, int source_speakermode, FloatBuffer sidechaindata, FMOD_DSP_STATE_FUNCTIONS functions, int systemobject)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long ninstance(long struct)
      Unsafe version of instance().
    • nplugindata

      public static long nplugindata(long struct)
      Unsafe version of plugindata().
    • nchannelmask

      public static int nchannelmask(long struct)
      Unsafe version of channelmask().
    • nsource_speakermode

      public static int nsource_speakermode(long struct)
      Unsafe version of source_speakermode().
    • nsidechaindata

      public static FloatBuffer nsidechaindata(long struct)
      Unsafe version of sidechaindata.
    • nsidechainchannels

      public static int nsidechainchannels(long struct)
      Unsafe version of sidechainchannels().
    • nfunctions

      public static FMOD_DSP_STATE_FUNCTIONS nfunctions(long struct)
      Unsafe version of functions().
    • nsystemobject

      public static int nsystemobject(long struct)
      Unsafe version of systemobject().
    • ninstance

      public static void ninstance(long struct, long value)
      Unsafe version of instance.
    • nplugindata

      public static void nplugindata(long struct, long value)
      Unsafe version of plugindata.
    • nchannelmask

      public static void nchannelmask(long struct, int value)
      Unsafe version of channelmask.
    • nsource_speakermode

      public static void nsource_speakermode(long struct, int value)
      Unsafe version of source_speakermode.
    • nsidechaindata

      public static void nsidechaindata(long struct, FloatBuffer value)
      Unsafe version of sidechaindata.
    • nsidechainchannels

      public static void nsidechainchannels(long struct, int value)
      Sets the specified value to the sidechainchannels field of the specified struct.
    • nfunctions

      public static void nfunctions(long struct, FMOD_DSP_STATE_FUNCTIONS value)
      Unsafe version of functions.
    • nsystemobject

      public static void nsystemobject(long struct, int value)
      Unsafe version of systemobject.
    • validate

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