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;
{@link FMOD_VECTOR FMOD_VECTOR} position;
float gain;
float spread;
float priority;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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_OBJECT3DINFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()
buffer
(FloatBuffer value) Sets the address of the specifiedFloatBuffer
to thebuffer
field.int
static FMOD_OUTPUT_OBJECT3DINFO
calloc()
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_OUTPUT_OBJECT3DINFO
calloc
(MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_OUTPUT_OBJECT3DINFO
create()
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withBufferUtils
.static FMOD_OUTPUT_OBJECT3DINFO
create
(long address) Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance at the specified memory.static @Nullable FMOD_OUTPUT_OBJECT3DINFO
createSafe
(long address) static @Nullable FMOD_OUTPUT_OBJECT3DINFO.Buffer
createSafe
(long address, int capacity) float
gain()
gain
(float value) Sets the specified value to thegain
field.static FMOD_OUTPUT_OBJECT3DINFO
malloc()
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_OUTPUT_OBJECT3DINFO
malloc
(MemoryStack stack) Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated on the specifiedMemoryStack
.static FloatBuffer
nbuffer
(long struct) Unsafe version ofbuffer
.static void
nbuffer
(long struct, FloatBuffer value) Unsafe version ofbuffer
.static int
nbufferlength
(long struct) Unsafe version ofbufferlength()
.static void
nbufferlength
(long struct, int value) Sets the specified value to thebufferlength
field of the specifiedstruct
.static float
ngain
(long struct) Unsafe version ofgain()
.static void
ngain
(long struct, float value) Unsafe version ofgain
.static FMOD_VECTOR
nposition$
(long struct) Unsafe version ofposition$()
.static void
nposition$
(long struct, FMOD_VECTOR value) Unsafe version ofposition$
.static float
npriority
(long struct) Unsafe version ofpriority()
.static void
npriority
(long struct, float value) Unsafe version ofpriority
.static float
nspread
(long struct) Unsafe version ofspread()
.static void
nspread
(long struct, float value) Unsafe version ofspread
.position$
(Consumer<FMOD_VECTOR> consumer) Passes theposition
field to the specifiedConsumer
.position$
(FMOD_VECTOR value) Copies the specifiedFMOD_VECTOR
to theposition
field.float
priority()
priority
(float value) Sets the specified value to thepriority
field.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.int
sizeof()
Returnssizeof(struct)
.float
spread()
spread
(float value) Sets the specified value to thespread
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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_OBJECT3DINFO
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<FMOD_OUTPUT_OBJECT3DINFO>
-
buffer
- Returns:
- a
FloatBuffer
view of the data pointed to by thebuffer
field.
-
bufferlength
public int bufferlength()- Returns:
- the value of the
bufferlength
field.
-
position$
- Returns:
- a
FMOD_VECTOR
view of theposition
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
Sets the address of the specifiedFloatBuffer
to thebuffer
field. -
position$
Copies the specifiedFMOD_VECTOR
to theposition
field. -
position$
Passes theposition
field to the specifiedConsumer
. -
gain
Sets the specified value to thegain
field. -
spread
Sets the specified value to thespread
field. -
priority
Sets the specified value to thepriority
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
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_OBJECT3DINFO.Buffer
instance allocated on the specifiedMemoryStack
and 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 thebufferlength
field 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
-