Class FMOD_OUTPUT_OBJECT3DINFO

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

public class FMOD_OUTPUT_OBJECT3DINFO extends org.lwjgl.system.Struct<FMOD_OUTPUT_OBJECT3DINFO> implements org.lwjgl.system.NativeResource

Layout


 struct FMOD_OUTPUT_OBJECT3DINFO {
     float * buffer;
     unsigned int bufferlength;
     FMOD_VECTOR position;
     float gain;
     float spread;
     float priority;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BUFFER
      The struct member offsets.
    • BUFFERLENGTH

      public static final int BUFFERLENGTH
      The struct member offsets.
    • POSITION

      public static final int POSITION
      The struct member offsets.
    • GAIN

      public static final int GAIN
      The struct member offsets.
    • SPREAD

      public static final int SPREAD
      The struct member offsets.
    • PRIORITY

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

    • FMOD_OUTPUT_OBJECT3DINFO

      public FMOD_OUTPUT_OBJECT3DINFO(ByteBuffer container)
      Creates a FMOD_OUTPUT_OBJECT3DINFO 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_OUTPUT_OBJECT3DINFO>
    • buffer

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

      public int bufferlength()
      Returns:
      the value of the bufferlength field.
    • position$

      public FMOD_VECTOR position$()
      Returns:
      a FMOD_VECTOR view of the position field.
    • gain

      public float gain()
      Returns:
      the value of the gain field.
    • spread

      public float spread()
      Returns:
      the value of the spread field.
    • priority

      public float priority()
      Returns:
      the value of the priority field.
    • buffer

      public FMOD_OUTPUT_OBJECT3DINFO buffer(FloatBuffer value)
      Sets the address of the specified FloatBuffer to the buffer field.
    • position$

      public FMOD_OUTPUT_OBJECT3DINFO position$(FMOD_VECTOR value)
      Copies the specified FMOD_VECTOR to the position field.
    • position$

      public FMOD_OUTPUT_OBJECT3DINFO position$(Consumer<FMOD_VECTOR> consumer)
      Passes the position field to the specified Consumer.
    • gain

      public FMOD_OUTPUT_OBJECT3DINFO gain(float value)
      Sets the specified value to the gain field.
    • spread

      public FMOD_OUTPUT_OBJECT3DINFO spread(float value)
      Sets the specified value to the spread field.
    • priority

      public FMOD_OUTPUT_OBJECT3DINFO priority(float value)
      Sets the specified value to the priority field.
    • set

      public FMOD_OUTPUT_OBJECT3DINFO set(FloatBuffer buffer, FMOD_VECTOR position$, float gain, float spread, float priority)
      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_OUTPUT_OBJECT3DINFO malloc()
      Returns a new FMOD_OUTPUT_OBJECT3DINFO instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static FloatBuffer nbuffer(long struct)
      Unsafe version of buffer.
    • nbufferlength

      public static int nbufferlength(long struct)
      Unsafe version of bufferlength().
    • nposition$

      public static FMOD_VECTOR nposition$(long struct)
      Unsafe version of position$().
    • ngain

      public static float ngain(long struct)
      Unsafe version of gain().
    • nspread

      public static float nspread(long struct)
      Unsafe version of spread().
    • npriority

      public static float npriority(long struct)
      Unsafe version of priority().
    • nbuffer

      public static void nbuffer(long struct, FloatBuffer value)
      Unsafe version of buffer.
    • nbufferlength

      public static void nbufferlength(long struct, int value)
      Sets the specified value to the bufferlength field of the specified struct.
    • nposition$

      public static void nposition$(long struct, FMOD_VECTOR value)
      Unsafe version of position$.
    • ngain

      public static void ngain(long struct, float value)
      Unsafe version of gain.
    • nspread

      public static void nspread(long struct, float value)
      Unsafe version of spread.
    • npriority

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

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