Class FSBANK_SUBSOUND

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class FSBANK_SUBSOUND extends Struct<FSBANK_SUBSOUND> implements NativeResource

 struct FSBANK_SUBSOUND {
     char const * const * fileNames;
     void const * const * fileData;
     unsigned int const * fileDataLengths;
     unsigned int numFiles;
     FSBANK_BUILDFLAGS overrideFlags;
     unsigned int overrideQuality;
     float desiredSampleRate;
     float percentOptimizedRate;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FILENAMES
      The struct member offsets.
    • FILEDATA

      public static final int FILEDATA
      The struct member offsets.
    • FILEDATALENGTHS

      public static final int FILEDATALENGTHS
      The struct member offsets.
    • NUMFILES

      public static final int NUMFILES
      The struct member offsets.
    • OVERRIDEFLAGS

      public static final int OVERRIDEFLAGS
      The struct member offsets.
    • OVERRIDEQUALITY

      public static final int OVERRIDEQUALITY
      The struct member offsets.
    • DESIREDSAMPLERATE

      public static final int DESIREDSAMPLERATE
      The struct member offsets.
    • PERCENTOPTIMIZEDRATE

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

    • FSBANK_SUBSOUND

      public FSBANK_SUBSOUND(ByteBuffer container)
      Creates a FSBANK_SUBSOUND 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<FSBANK_SUBSOUND>
    • fileNames

      public PointerBuffer fileNames()
      Returns:
      a PointerBuffer view of the data pointed to by the fileNames field.
    • fileData

      public PointerBuffer fileData()
      Returns:
      a PointerBuffer view of the data pointed to by the fileData field.
    • fileDataLengths

      public IntBuffer fileDataLengths()
      Returns:
      a IntBuffer view of the data pointed to by the fileDataLengths field.
    • numFiles

      public int numFiles()
      Returns:
      the value of the numFiles field.
    • overrideFlags

      public int overrideFlags()
      Returns:
      the value of the overrideFlags field.
    • overrideQuality

      public int overrideQuality()
      Returns:
      the value of the overrideQuality field.
    • desiredSampleRate

      public float desiredSampleRate()
      Returns:
      the value of the desiredSampleRate field.
    • percentOptimizedRate

      public float percentOptimizedRate()
      Returns:
      the value of the percentOptimizedRate field.
    • fileNames

      public FSBANK_SUBSOUND fileNames(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the fileNames field.
    • fileData

      public FSBANK_SUBSOUND fileData(PointerBuffer value)
      Sets the address of the specified PointerBuffer to the fileData field.
    • fileDataLengths

      public FSBANK_SUBSOUND fileDataLengths(IntBuffer value)
      Sets the address of the specified IntBuffer to the fileDataLengths field.
    • numFiles

      public FSBANK_SUBSOUND numFiles(int value)
      Sets the specified value to the numFiles field.
    • overrideFlags

      public FSBANK_SUBSOUND overrideFlags(int value)
      Sets the specified value to the overrideFlags field.
    • overrideQuality

      public FSBANK_SUBSOUND overrideQuality(int value)
      Sets the specified value to the overrideQuality field.
    • desiredSampleRate

      public FSBANK_SUBSOUND desiredSampleRate(float value)
      Sets the specified value to the desiredSampleRate field.
    • percentOptimizedRate

      public FSBANK_SUBSOUND percentOptimizedRate(float value)
      Sets the specified value to the percentOptimizedRate field.
    • set

      public FSBANK_SUBSOUND set(PointerBuffer fileNames, PointerBuffer fileData, IntBuffer fileDataLengths, int numFiles, int overrideFlags, int overrideQuality, float desiredSampleRate, float percentOptimizedRate)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static PointerBuffer nfileNames(long struct)
      Unsafe version of fileNames.
    • nfileData

      public static PointerBuffer nfileData(long struct)
      Unsafe version of fileData.
    • nfileDataLengths

      public static IntBuffer nfileDataLengths(long struct)
      Unsafe version of fileDataLengths.
    • nnumFiles

      public static int nnumFiles(long struct)
      Unsafe version of numFiles().
    • noverrideFlags

      public static int noverrideFlags(long struct)
      Unsafe version of overrideFlags().
    • noverrideQuality

      public static int noverrideQuality(long struct)
      Unsafe version of overrideQuality().
    • ndesiredSampleRate

      public static float ndesiredSampleRate(long struct)
      Unsafe version of desiredSampleRate().
    • npercentOptimizedRate

      public static float npercentOptimizedRate(long struct)
      Unsafe version of percentOptimizedRate().
    • nfileNames

      public static void nfileNames(long struct, PointerBuffer value)
      Unsafe version of fileNames.
    • nfileData

      public static void nfileData(long struct, PointerBuffer value)
      Unsafe version of fileData.
    • nfileDataLengths

      public static void nfileDataLengths(long struct, IntBuffer value)
      Unsafe version of fileDataLengths.
    • nnumFiles

      public static void nnumFiles(long struct, int value)
      Sets the specified value to the numFiles field of the specified struct.
    • noverrideFlags

      public static void noverrideFlags(long struct, int value)
      Unsafe version of overrideFlags.
    • noverrideQuality

      public static void noverrideQuality(long struct, int value)
      Unsafe version of overrideQuality.
    • ndesiredSampleRate

      public static void ndesiredSampleRate(long struct, float value)
      Unsafe version of desiredSampleRate.
    • npercentOptimizedRate

      public static void npercentOptimizedRate(long struct, float value)
      Unsafe version of percentOptimizedRate.
    • validate

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