Class FMOD_DSP_BUFFER_ARRAY

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

public class FMOD_DSP_BUFFER_ARRAY extends org.lwjgl.system.Struct<FMOD_DSP_BUFFER_ARRAY> implements org.lwjgl.system.NativeResource
DSP Structures

Layout


 struct FMOD_DSP_BUFFER_ARRAY {
     int numbuffers;
     int * buffernumchannels;
     FMOD_CHANNELMASK * bufferchannelmask;
     float ** buffers;
     FMOD_SPEAKERMODE speakermode;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NUMBUFFERS
      The struct member offsets.
    • BUFFERNUMCHANNELS

      public static final int BUFFERNUMCHANNELS
      The struct member offsets.
    • BUFFERCHANNELMASK

      public static final int BUFFERCHANNELMASK
      The struct member offsets.
    • BUFFERS

      public static final int BUFFERS
      The struct member offsets.
    • SPEAKERMODE

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

    • FMOD_DSP_BUFFER_ARRAY

      public FMOD_DSP_BUFFER_ARRAY(ByteBuffer container)
      Creates a FMOD_DSP_BUFFER_ARRAY 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_BUFFER_ARRAY>
    • numbuffers

      public int numbuffers()
      Returns:
      the value of the numbuffers field.
    • buffernumchannels

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

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

      public org.lwjgl.PointerBuffer buffers()
      Returns:
      a PointerBuffer view of the data pointed to by the buffers field.
    • speakermode

      public int speakermode()
      Returns:
      the value of the speakermode field.
    • numbuffers

      public FMOD_DSP_BUFFER_ARRAY numbuffers(int value)
      Sets the specified value to the numbuffers field.
    • buffernumchannels

      public FMOD_DSP_BUFFER_ARRAY buffernumchannels(IntBuffer value)
      Sets the address of the specified IntBuffer to the buffernumchannels field.
    • bufferchannelmask

      public FMOD_DSP_BUFFER_ARRAY bufferchannelmask(IntBuffer value)
      Sets the address of the specified IntBuffer to the bufferchannelmask field.
    • buffers

      public FMOD_DSP_BUFFER_ARRAY buffers(org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the buffers field.
    • speakermode

      public FMOD_DSP_BUFFER_ARRAY speakermode(int value)
      Sets the specified value to the speakermode field.
    • set

      public FMOD_DSP_BUFFER_ARRAY set(int numbuffers, IntBuffer buffernumchannels, IntBuffer bufferchannelmask, org.lwjgl.PointerBuffer buffers, int speakermode)
      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_BUFFER_ARRAY malloc()
      Returns a new FMOD_DSP_BUFFER_ARRAY instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nnumbuffers(long struct)
      Unsafe version of numbuffers().
    • nbuffernumchannels

      public static IntBuffer nbuffernumchannels(long struct)
      Unsafe version of buffernumchannels.
    • nbufferchannelmask

      public static IntBuffer nbufferchannelmask(long struct)
      Unsafe version of bufferchannelmask.
    • nbuffers

      public static org.lwjgl.PointerBuffer nbuffers(long struct)
      Unsafe version of buffers.
    • nspeakermode

      public static int nspeakermode(long struct)
      Unsafe version of speakermode().
    • nnumbuffers

      public static void nnumbuffers(long struct, int value)
      Sets the specified value to the numbuffers field of the specified struct.
    • nbuffernumchannels

      public static void nbuffernumchannels(long struct, IntBuffer value)
      Unsafe version of buffernumchannels.
    • nbufferchannelmask

      public static void nbufferchannelmask(long struct, IntBuffer value)
      Unsafe version of bufferchannelmask.
    • nbuffers

      public static void nbuffers(long struct, org.lwjgl.PointerBuffer value)
      Unsafe version of buffers.
    • nspeakermode

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

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