Class FMOD_STUDIO_ADVANCEDSETTINGS

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FMOD_STUDIO_ADVANCEDSETTINGS extends Struct<FMOD_STUDIO_ADVANCEDSETTINGS> implements NativeResource

 struct FMOD_STUDIO_ADVANCEDSETTINGS {
     int cbsize;
     unsigned int commandqueuesize;
     unsigned int handleinitialsize;
     int studioupdateperiod;
     int idlesampledatapoolsize;
     unsigned int streamingscheduledelay;
     char const * encryptionkey;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CBSIZE
      The struct member offsets.
    • COMMANDQUEUESIZE

      public static final int COMMANDQUEUESIZE
      The struct member offsets.
    • HANDLEINITIALSIZE

      public static final int HANDLEINITIALSIZE
      The struct member offsets.
    • STUDIOUPDATEPERIOD

      public static final int STUDIOUPDATEPERIOD
      The struct member offsets.
    • IDLESAMPLEDATAPOOLSIZE

      public static final int IDLESAMPLEDATAPOOLSIZE
      The struct member offsets.
    • STREAMINGSCHEDULEDELAY

      public static final int STREAMINGSCHEDULEDELAY
      The struct member offsets.
    • ENCRYPTIONKEY

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

    • FMOD_STUDIO_ADVANCEDSETTINGS

      public FMOD_STUDIO_ADVANCEDSETTINGS(ByteBuffer container)
      Creates a FMOD_STUDIO_ADVANCEDSETTINGS 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_STUDIO_ADVANCEDSETTINGS>
    • cbsize

      public int cbsize()
      Returns:
      the value of the cbsize field.
    • commandqueuesize

      public int commandqueuesize()
      Returns:
      the value of the commandqueuesize field.
    • handleinitialsize

      public int handleinitialsize()
      Returns:
      the value of the handleinitialsize field.
    • studioupdateperiod

      public int studioupdateperiod()
      Returns:
      the value of the studioupdateperiod field.
    • idlesampledatapoolsize

      public int idlesampledatapoolsize()
      Returns:
      the value of the idlesampledatapoolsize field.
    • streamingscheduledelay

      public int streamingscheduledelay()
      Returns:
      the value of the streamingscheduledelay field.
    • encryptionkey

      public ByteBuffer encryptionkey()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the encryptionkey field.
    • encryptionkeyString

      public String encryptionkeyString()
      Returns:
      the null-terminated string pointed to by the encryptionkey field.
    • cbsize

      public FMOD_STUDIO_ADVANCEDSETTINGS cbsize(int value)
      Sets the specified value to the cbsize field.
    • commandqueuesize

      public FMOD_STUDIO_ADVANCEDSETTINGS commandqueuesize(int value)
      Sets the specified value to the commandqueuesize field.
    • handleinitialsize

      public FMOD_STUDIO_ADVANCEDSETTINGS handleinitialsize(int value)
      Sets the specified value to the handleinitialsize field.
    • studioupdateperiod

      public FMOD_STUDIO_ADVANCEDSETTINGS studioupdateperiod(int value)
      Sets the specified value to the studioupdateperiod field.
    • idlesampledatapoolsize

      public FMOD_STUDIO_ADVANCEDSETTINGS idlesampledatapoolsize(int value)
      Sets the specified value to the idlesampledatapoolsize field.
    • streamingscheduledelay

      public FMOD_STUDIO_ADVANCEDSETTINGS streamingscheduledelay(int value)
      Sets the specified value to the streamingscheduledelay field.
    • encryptionkey

      public FMOD_STUDIO_ADVANCEDSETTINGS encryptionkey(ByteBuffer value)
      Sets the address of the specified encoded string to the encryptionkey field.
    • set

      public FMOD_STUDIO_ADVANCEDSETTINGS set(int cbsize, int commandqueuesize, int handleinitialsize, int studioupdateperiod, int idlesampledatapoolsize, int streamingscheduledelay, ByteBuffer encryptionkey)
      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_STUDIO_ADVANCEDSETTINGS malloc()
      Returns a new FMOD_STUDIO_ADVANCEDSETTINGS instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ncbsize(long struct)
      Unsafe version of cbsize().
    • ncommandqueuesize

      public static int ncommandqueuesize(long struct)
      Unsafe version of commandqueuesize().
    • nhandleinitialsize

      public static int nhandleinitialsize(long struct)
      Unsafe version of handleinitialsize().
    • nstudioupdateperiod

      public static int nstudioupdateperiod(long struct)
      Unsafe version of studioupdateperiod().
    • nidlesampledatapoolsize

      public static int nidlesampledatapoolsize(long struct)
      Unsafe version of idlesampledatapoolsize().
    • nstreamingscheduledelay

      public static int nstreamingscheduledelay(long struct)
      Unsafe version of streamingscheduledelay().
    • nencryptionkey

      public static ByteBuffer nencryptionkey(long struct)
      Unsafe version of encryptionkey().
    • nencryptionkeyString

      public static String nencryptionkeyString(long struct)
      Unsafe version of encryptionkeyString().
    • ncbsize

      public static void ncbsize(long struct, int value)
      Unsafe version of cbsize.
    • ncommandqueuesize

      public static void ncommandqueuesize(long struct, int value)
      Unsafe version of commandqueuesize.
    • nhandleinitialsize

      public static void nhandleinitialsize(long struct, int value)
      Unsafe version of handleinitialsize.
    • nstudioupdateperiod

      public static void nstudioupdateperiod(long struct, int value)
      Unsafe version of studioupdateperiod.
    • nidlesampledatapoolsize

      public static void nidlesampledatapoolsize(long struct, int value)
      Unsafe version of idlesampledatapoolsize.
    • nstreamingscheduledelay

      public static void nstreamingscheduledelay(long struct, int value)
      Unsafe version of streamingscheduledelay.
    • nencryptionkey

      public static void nencryptionkey(long struct, ByteBuffer value)
      Unsafe version of encryptionkey.
    • validate

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