Package org.lwjgl.fmod
Class FMOD_OUTPUT_STATE
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct FMOD_OUTPUT_STATE {
void * plugindata;
FMOD_OUTPUT_READFROMMIXER_FUNC readfrommixer;
FMOD_OUTPUT_ALLOC_FUNC alloc;
FMOD_OUTPUT_FREE_FUNC free;
FMOD_OUTPUT_LOG_FUNC log;
FMOD_OUTPUT_COPYPORT_FUNC copyport;
FMOD_OUTPUT_REQUESTRESET_FUNC requestreset;
}-
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 member offsets.static final intThe struct member offsets.static final intThe 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_STATEinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionalloc()alloc(FMOD_OUTPUT_ALLOC_FUNCI value) Sets the specified value to theallocfield.static FMOD_OUTPUT_STATEcalloc()Returns a newFMOD_OUTPUT_STATEinstance allocated withmemCalloc.static FMOD_OUTPUT_STATE.Buffercalloc(int capacity) Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withmemCalloc.static FMOD_OUTPUT_STATE.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_OUTPUT_STATEcalloc(MemoryStack stack) Returns a newFMOD_OUTPUT_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.copyport()Sets the specified value to thecopyportfield.static FMOD_OUTPUT_STATEcreate()Returns a newFMOD_OUTPUT_STATEinstance allocated withBufferUtils.static FMOD_OUTPUT_STATE.Buffercreate(int capacity) Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withBufferUtils.static FMOD_OUTPUT_STATEcreate(long address) Returns a newFMOD_OUTPUT_STATEinstance for the specified memory address.static FMOD_OUTPUT_STATE.Buffercreate(long address, int capacity) Create aFMOD_OUTPUT_STATE.Bufferinstance at the specified memory.static @Nullable FMOD_OUTPUT_STATEcreateSafe(long address) static @Nullable FMOD_OUTPUT_STATE.BuffercreateSafe(long address, int capacity) free$()free$(FMOD_OUTPUT_FREE_FUNCI value) Sets the specified value to thefreefield.log()log(FMOD_OUTPUT_LOG_FUNCI value) Sets the specified value to thelogfield.static FMOD_OUTPUT_STATEmalloc()Returns a newFMOD_OUTPUT_STATEinstance allocated withmemAlloc.static FMOD_OUTPUT_STATE.Buffermalloc(int capacity) Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withmemAlloc.static FMOD_OUTPUT_STATE.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_OUTPUT_STATEmalloc(MemoryStack stack) Returns a newFMOD_OUTPUT_STATEinstance allocated on the specifiedMemoryStack.static FMOD_OUTPUT_ALLOC_FUNCnalloc(long struct) Unsafe version ofalloc().static voidnalloc(long struct, FMOD_OUTPUT_ALLOC_FUNCI value) Unsafe version ofalloc.static FMOD_OUTPUT_COPYPORT_FUNCncopyport(long struct) Unsafe version ofcopyport().static voidncopyport(long struct, FMOD_OUTPUT_COPYPORT_FUNCI value) Unsafe version ofcopyport.static FMOD_OUTPUT_FREE_FUNCnfree$(long struct) Unsafe version offree$().static voidnfree$(long struct, FMOD_OUTPUT_FREE_FUNCI value) Unsafe version offree$.static FMOD_OUTPUT_LOG_FUNCnlog(long struct) Unsafe version oflog().static voidnlog(long struct, FMOD_OUTPUT_LOG_FUNCI value) Unsafe version oflog.static longnplugindata(long struct) Unsafe version ofplugindata().static voidnplugindata(long struct, long value) Unsafe version ofplugindata.nreadfrommixer(long struct) Unsafe version ofreadfrommixer().static voidnreadfrommixer(long struct, FMOD_OUTPUT_READFROMMIXER_FUNCI value) Unsafe version ofreadfrommixer.nrequestreset(long struct) Unsafe version ofrequestreset().static voidnrequestreset(long struct, FMOD_OUTPUT_REQUESTRESET_FUNCI value) Unsafe version ofrequestreset.longplugindata(long value) Sets the specified value to theplugindatafield.Sets the specified value to thereadfrommixerfield.Sets the specified value to therequestresetfield.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.intsizeof()Returnssizeof(struct).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. -
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_STATEinstance 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_STATE>
-
plugindata
public long plugindata()- Returns:
- the value of the
plugindatafield.
-
readfrommixer
- Returns:
- the value of the
readfrommixerfield.
-
alloc
- Returns:
- the value of the
allocfield.
-
free$
- Returns:
- the value of the
freefield.
-
log
- Returns:
- the value of the
logfield.
-
copyport
- Returns:
- the value of the
copyportfield.
-
requestreset
- Returns:
- the value of the
requestresetfield.
-
plugindata
Sets the specified value to theplugindatafield. -
readfrommixer
Sets the specified value to thereadfrommixerfield. -
alloc
Sets the specified value to theallocfield. -
free$
Sets the specified value to thefreefield. -
log
Sets the specified value to thelogfield. -
copyport
Sets the specified value to thecopyportfield. -
requestreset
Sets the specified value to therequestresetfield. -
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_STATEinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_OUTPUT_STATEinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_OUTPUT_STATEinstance allocated withBufferUtils. -
create
Returns a newFMOD_OUTPUT_STATEinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_OUTPUT_STATE.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_OUTPUT_STATEinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_STATEinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_OUTPUT_STATE.Bufferinstance allocated on the specifiedMemoryStackand 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
-