Package org.lwjgl.fmod
Class FMOD_STUDIO_SOUND_INFO
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class FMOD_STUDIO_SOUND_INFO
extends Struct<FMOD_STUDIO_SOUND_INFO>
implements NativeResource
struct FMOD_STUDIO_SOUND_INFO {
char const * name_or_data;
FMOD_MODE mode;
FMOD_CREATESOUNDEXINFO exinfo;
int subsoundindex;
}-
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 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_STUDIO_SOUND_INFO(ByteBuffer container) Creates aFMOD_STUDIO_SOUND_INFOinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_SOUND_INFOcalloc()Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_SOUND_INFOcalloc(MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_STUDIO_SOUND_INFOcreate()Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withBufferUtils.static FMOD_STUDIO_SOUND_INFOcreate(long address) Returns a newFMOD_STUDIO_SOUND_INFOinstance for the specified memory address.create(long address, int capacity) Create aFMOD_STUDIO_SOUND_INFO.Bufferinstance at the specified memory.static @Nullable FMOD_STUDIO_SOUND_INFOcreateSafe(long address) static @Nullable FMOD_STUDIO_SOUND_INFO.BuffercreateSafe(long address, int capacity) exinfo()exinfo(Consumer<FMOD_CREATESOUNDEXINFO> consumer) Passes theexinfofield to the specifiedConsumer.exinfo(FMOD_CREATESOUNDEXINFO value) Copies the specifiedFMOD_CREATESOUNDEXINFOto theexinfofield.static FMOD_STUDIO_SOUND_INFOmalloc()Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_STUDIO_SOUND_INFOmalloc(MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated on the specifiedMemoryStack.intmode()mode(int value) Sets the specified value to themodefield.name_or_data(int capacity) name_or_data(ByteBuffer value) Sets the address of the specifiedByteBufferto thename_or_datafield.static FMOD_CREATESOUNDEXINFOnexinfo(long struct) Unsafe version ofexinfo().static voidnexinfo(long struct, FMOD_CREATESOUNDEXINFO value) Unsafe version ofexinfo.static intnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, int value) Unsafe version ofmode.static ByteBuffernname_or_data(long struct, int capacity) Unsafe version ofname_or_data.static voidnname_or_data(long struct, ByteBuffer value) Unsafe version ofname_or_data.static intnsubsoundindex(long struct) Unsafe version ofsubsoundindex().static voidnsubsoundindex(long struct, int value) Unsafe version ofsubsoundindex.set(ByteBuffer name_or_data, int mode, FMOD_CREATESOUNDEXINFO exinfo, int subsoundindex) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsubsoundindex(int value) Sets the specified value to thesubsoundindexfield.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. -
NAME_OR_DATA
public static final int NAME_OR_DATAThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
EXINFO
public static final int EXINFOThe struct member offsets. -
SUBSOUNDINDEX
public static final int SUBSOUNDINDEXThe struct member offsets.
-
-
Constructor Details
-
FMOD_STUDIO_SOUND_INFO
Creates aFMOD_STUDIO_SOUND_INFOinstance 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_STUDIO_SOUND_INFO>
-
name_or_data
- Returns:
- a
ByteBufferview of the data pointed to by thename_or_datafield.
-
mode
public int mode()- Returns:
- the value of the
modefield.
-
exinfo
- Returns:
- a
FMOD_CREATESOUNDEXINFOview of theexinfofield.
-
subsoundindex
public int subsoundindex()- Returns:
- the value of the
subsoundindexfield.
-
name_or_data
Sets the address of the specifiedByteBufferto thename_or_datafield. -
mode
Sets the specified value to themodefield. -
exinfo
Copies the specifiedFMOD_CREATESOUNDEXINFOto theexinfofield. -
exinfo
Passes theexinfofield to the specifiedConsumer. -
subsoundindex
Sets the specified value to thesubsoundindexfield. -
set
public FMOD_STUDIO_SOUND_INFO set(ByteBuffer name_or_data, int mode, FMOD_CREATESOUNDEXINFO exinfo, int subsoundindex) 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_STUDIO_SOUND_INFOinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated withBufferUtils. -
create
Returns a newFMOD_STUDIO_SOUND_INFOinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_STUDIO_SOUND_INFO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nname_or_data
Unsafe version ofname_or_data. -
nmode
public static int nmode(long struct) Unsafe version ofmode(). -
nexinfo
Unsafe version ofexinfo(). -
nsubsoundindex
public static int nsubsoundindex(long struct) Unsafe version ofsubsoundindex(). -
nname_or_data
Unsafe version ofname_or_data. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode. -
nexinfo
Unsafe version ofexinfo. -
nsubsoundindex
public static void nsubsoundindex(long struct, int value) Unsafe version ofsubsoundindex. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-