Package org.lwjgl.fmod
Class FMOD_OUTPUT_OBJECT3DINFO
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_OUTPUT_OBJECT3DINFO
extends Struct<FMOD_OUTPUT_OBJECT3DINFO>
implements NativeResource
struct FMOD_OUTPUT_OBJECT3DINFO {
float * buffer;
unsigned int bufferlength;
FMOD_VECTOR position;
float gain;
float spread;
float priority;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFMOD_OUTPUT_OBJECT3DINFO(ByteBuffer container) Creates aFMOD_OUTPUT_OBJECT3DINFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()buffer(FloatBuffer value) Sets the address of the specifiedFloatBufferto thebufferfield.intstatic FMOD_OUTPUT_OBJECT3DINFOcalloc()Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_OUTPUT_OBJECT3DINFOcalloc(MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_OUTPUT_OBJECT3DINFOcreate()Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withBufferUtils.static FMOD_OUTPUT_OBJECT3DINFOcreate(long address) Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance for the specified memory address.create(long address, int capacity) Create aFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance at the specified memory.static @Nullable FMOD_OUTPUT_OBJECT3DINFOcreateSafe(long address) static @Nullable FMOD_OUTPUT_OBJECT3DINFO.BuffercreateSafe(long address, int capacity) floatgain()gain(float value) Sets the specified value to thegainfield.static FMOD_OUTPUT_OBJECT3DINFOmalloc()Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_OUTPUT_OBJECT3DINFOmalloc(MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated on the specifiedMemoryStack.static FloatBuffernbuffer(long struct) Unsafe version ofbuffer.static voidnbuffer(long struct, FloatBuffer value) Unsafe version ofbuffer.static intnbufferlength(long struct) Unsafe version ofbufferlength().static voidnbufferlength(long struct, int value) Sets the specified value to thebufferlengthfield of the specifiedstruct.static floatngain(long struct) Unsafe version ofgain().static voidngain(long struct, float value) Unsafe version ofgain.static FMOD_VECTORnposition$(long struct) Unsafe version ofposition$().static voidnposition$(long struct, FMOD_VECTOR value) Unsafe version ofposition$.static floatnpriority(long struct) Unsafe version ofpriority().static voidnpriority(long struct, float value) Unsafe version ofpriority.static floatnspread(long struct) Unsafe version ofspread().static voidnspread(long struct, float value) Unsafe version ofspread.position$(Consumer<FMOD_VECTOR> consumer) Passes thepositionfield to the specifiedConsumer.position$(FMOD_VECTOR value) Copies the specifiedFMOD_VECTORto thepositionfield.floatpriority()priority(float value) Sets the specified value to thepriorityfield.set(FloatBuffer buffer, FMOD_VECTOR position$, float gain, float spread, float priority) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).floatspread()spread(float value) Sets the specified value to thespreadfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
BUFFER
public static final int BUFFERThe struct member offsets. -
BUFFERLENGTH
public static final int BUFFERLENGTHThe struct member offsets. -
POSITION
public static final int POSITIONThe struct member offsets. -
GAIN
public static final int GAINThe struct member offsets. -
SPREAD
public static final int SPREADThe struct member offsets. -
PRIORITY
public static final int PRIORITYThe struct member offsets.
-
-
Constructor Details
-
FMOD_OUTPUT_OBJECT3DINFO
Creates aFMOD_OUTPUT_OBJECT3DINFOinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<FMOD_OUTPUT_OBJECT3DINFO>
-
buffer
- Returns:
- a
FloatBufferview of the data pointed to by thebufferfield.
-
bufferlength
public int bufferlength()- Returns:
- the value of the
bufferlengthfield.
-
position$
- Returns:
- a
FMOD_VECTORview of thepositionfield.
-
gain
public float gain()- Returns:
- the value of the
gainfield.
-
spread
public float spread()- Returns:
- the value of the
spreadfield.
-
priority
public float priority()- Returns:
- the value of the
priorityfield.
-
buffer
Sets the address of the specifiedFloatBufferto thebufferfield. -
position$
Copies the specifiedFMOD_VECTORto thepositionfield. -
position$
Passes thepositionfield to the specifiedConsumer. -
gain
Sets the specified value to thegainfield. -
spread
Sets the specified value to thespreadfield. -
priority
Sets the specified value to thepriorityfield. -
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
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbuffer
Unsafe version ofbuffer. -
nbufferlength
public static int nbufferlength(long struct) Unsafe version ofbufferlength(). -
nposition$
Unsafe version ofposition$(). -
ngain
public static float ngain(long struct) Unsafe version ofgain(). -
nspread
public static float nspread(long struct) Unsafe version ofspread(). -
npriority
public static float npriority(long struct) Unsafe version ofpriority(). -
nbuffer
Unsafe version ofbuffer. -
nbufferlength
public static void nbufferlength(long struct, int value) Sets the specified value to thebufferlengthfield of the specifiedstruct. -
nposition$
Unsafe version ofposition$. -
ngain
public static void ngain(long struct, float value) Unsafe version ofgain. -
nspread
public static void nspread(long struct, float value) Unsafe version ofspread. -
npriority
public static void npriority(long struct, float value) Unsafe version ofpriority. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-