Package org.lwjgl.fmod
Class FMOD_OUTPUT_STATE
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_OUTPUT_STATE {
void * plugindata;
{@link FMOD_OUTPUT_READFROMMIXER_FUNCI FMOD_OUTPUT_READFROMMIXER_FUNC} readfrommixer;
{@link FMOD_OUTPUT_ALLOC_FUNCI FMOD_OUTPUT_ALLOC_FUNC} alloc;
{@link FMOD_OUTPUT_FREE_FUNCI FMOD_OUTPUT_FREE_FUNC} free;
{@link FMOD_OUTPUT_LOG_FUNCI FMOD_OUTPUT_LOG_FUNC} log;
{@link FMOD_OUTPUT_COPYPORT_FUNCI FMOD_OUTPUT_COPYPORT_FUNC} copyport;
{@link FMOD_OUTPUT_REQUESTRESET_FUNCI FMOD_OUTPUT_REQUESTRESET_FUNC} requestreset;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFMOD_OUTPUT_STATE
(ByteBuffer container) Creates aFMOD_OUTPUT_STATE
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionalloc()
alloc
(FMOD_OUTPUT_ALLOC_FUNCI value) Sets the specified value to thealloc
field.static FMOD_OUTPUT_STATE
calloc()
Returns a newFMOD_OUTPUT_STATE
instance allocated withmemCalloc
.static FMOD_OUTPUT_STATE.Buffer
calloc
(int capacity) Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withmemCalloc
.static FMOD_OUTPUT_STATE.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_OUTPUT_STATE
calloc
(MemoryStack stack) Returns a newFMOD_OUTPUT_STATE
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.copyport()
Sets the specified value to thecopyport
field.static FMOD_OUTPUT_STATE
create()
Returns a newFMOD_OUTPUT_STATE
instance allocated withBufferUtils
.static FMOD_OUTPUT_STATE.Buffer
create
(int capacity) Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withBufferUtils
.static FMOD_OUTPUT_STATE
create
(long address) Returns a newFMOD_OUTPUT_STATE
instance for the specified memory address.static FMOD_OUTPUT_STATE.Buffer
create
(long address, int capacity) Create aFMOD_OUTPUT_STATE.Buffer
instance at the specified memory.static @Nullable FMOD_OUTPUT_STATE
createSafe
(long address) static @Nullable FMOD_OUTPUT_STATE.Buffer
createSafe
(long address, int capacity) free$()
free$
(FMOD_OUTPUT_FREE_FUNCI value) Sets the specified value to thefree
field.log()
log
(FMOD_OUTPUT_LOG_FUNCI value) Sets the specified value to thelog
field.static FMOD_OUTPUT_STATE
malloc()
Returns a newFMOD_OUTPUT_STATE
instance allocated withmemAlloc
.static FMOD_OUTPUT_STATE.Buffer
malloc
(int capacity) Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withmemAlloc
.static FMOD_OUTPUT_STATE.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_OUTPUT_STATE
malloc
(MemoryStack stack) Returns a newFMOD_OUTPUT_STATE
instance allocated on the specifiedMemoryStack
.static FMOD_OUTPUT_ALLOC_FUNC
nalloc
(long struct) Unsafe version ofalloc()
.static void
nalloc
(long struct, FMOD_OUTPUT_ALLOC_FUNCI value) Unsafe version ofalloc
.static FMOD_OUTPUT_COPYPORT_FUNC
ncopyport
(long struct) Unsafe version ofcopyport()
.static void
ncopyport
(long struct, FMOD_OUTPUT_COPYPORT_FUNCI value) Unsafe version ofcopyport
.static FMOD_OUTPUT_FREE_FUNC
nfree$
(long struct) Unsafe version offree$()
.static void
nfree$
(long struct, FMOD_OUTPUT_FREE_FUNCI value) Unsafe version offree$
.static FMOD_OUTPUT_LOG_FUNC
nlog
(long struct) Unsafe version oflog()
.static void
nlog
(long struct, FMOD_OUTPUT_LOG_FUNCI value) Unsafe version oflog
.static long
nplugindata
(long struct) Unsafe version ofplugindata()
.static void
nplugindata
(long struct, long value) Unsafe version ofplugindata
.nreadfrommixer
(long struct) Unsafe version ofreadfrommixer()
.static void
nreadfrommixer
(long struct, FMOD_OUTPUT_READFROMMIXER_FUNCI value) Unsafe version ofreadfrommixer
.nrequestreset
(long struct) Unsafe version ofrequestreset()
.static void
nrequestreset
(long struct, FMOD_OUTPUT_REQUESTRESET_FUNCI value) Unsafe version ofrequestreset
.long
plugindata
(long value) Sets the specified value to theplugindata
field.Sets the specified value to thereadfrommixer
field.Sets the specified value to therequestreset
field.set
(long plugindata, FMOD_OUTPUT_READFROMMIXER_FUNCI readfrommixer, FMOD_OUTPUT_ALLOC_FUNCI alloc, FMOD_OUTPUT_FREE_FUNCI free$, FMOD_OUTPUT_LOG_FUNCI log, FMOD_OUTPUT_COPYPORT_FUNCI copyport, FMOD_OUTPUT_REQUESTRESET_FUNCI requestreset) Initializes this struct with the specified values.set
(FMOD_OUTPUT_STATE src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
PLUGINDATA
public static final int PLUGINDATAThe struct member offsets. -
READFROMMIXER
public static final int READFROMMIXERThe struct member offsets. -
ALLOC
public static final int ALLOCThe struct member offsets. -
FREE
public static final int FREEThe struct member offsets. -
LOG
public static final int LOGThe struct member offsets. -
COPYPORT
public static final int COPYPORTThe struct member offsets. -
REQUESTRESET
public static final int REQUESTRESETThe struct member offsets.
-
-
Constructor Details
-
FMOD_OUTPUT_STATE
Creates aFMOD_OUTPUT_STATE
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_STATE>
-
plugindata
public long plugindata()- Returns:
- the value of the
plugindata
field.
-
readfrommixer
- Returns:
- the value of the
readfrommixer
field.
-
alloc
- Returns:
- the value of the
alloc
field.
-
free$
- Returns:
- the value of the
free
field.
-
log
- Returns:
- the value of the
log
field.
-
copyport
- Returns:
- the value of the
copyport
field.
-
requestreset
- Returns:
- the value of the
requestreset
field.
-
plugindata
Sets the specified value to theplugindata
field. -
readfrommixer
Sets the specified value to thereadfrommixer
field. -
alloc
Sets the specified value to thealloc
field. -
free$
Sets the specified value to thefree
field. -
log
Sets the specified value to thelog
field. -
copyport
Sets the specified value to thecopyport
field. -
requestreset
Sets the specified value to therequestreset
field. -
set
public FMOD_OUTPUT_STATE set(long plugindata, FMOD_OUTPUT_READFROMMIXER_FUNCI readfrommixer, FMOD_OUTPUT_ALLOC_FUNCI alloc, FMOD_OUTPUT_FREE_FUNCI free$, FMOD_OUTPUT_LOG_FUNCI log, FMOD_OUTPUT_COPYPORT_FUNCI copyport, FMOD_OUTPUT_REQUESTRESET_FUNCI requestreset) 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_STATE
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_OUTPUT_STATE
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_OUTPUT_STATE
instance allocated withBufferUtils
. -
create
Returns a newFMOD_OUTPUT_STATE
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_OUTPUT_STATE.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_OUTPUT_STATE
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_STATE
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_STATE.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_STATE.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nplugindata
public static long nplugindata(long struct) Unsafe version ofplugindata()
. -
nreadfrommixer
Unsafe version ofreadfrommixer()
. -
nalloc
Unsafe version ofalloc()
. -
nfree$
Unsafe version offree$()
. -
nlog
Unsafe version oflog()
. -
ncopyport
Unsafe version ofcopyport()
. -
nrequestreset
Unsafe version ofrequestreset()
. -
nplugindata
public static void nplugindata(long struct, long value) Unsafe version ofplugindata
. -
nreadfrommixer
Unsafe version ofreadfrommixer
. -
nalloc
Unsafe version ofalloc
. -
nfree$
Unsafe version offree$
. -
nlog
Unsafe version oflog
. -
ncopyport
Unsafe version ofcopyport
. -
nrequestreset
Unsafe version ofrequestreset
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-