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;
{@link FMOD_CREATESOUNDEXINFO FMOD_CREATESOUNDEXINFO} exinfo;
int subsoundindex;
}
-
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 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_STUDIO_SOUND_INFO
(ByteBuffer container) Creates aFMOD_STUDIO_SOUND_INFO
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_STUDIO_SOUND_INFO
calloc()
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_STUDIO_SOUND_INFO
calloc
(MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_STUDIO_SOUND_INFO
create()
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withBufferUtils
.static FMOD_STUDIO_SOUND_INFO
create
(long address) Returns a newFMOD_STUDIO_SOUND_INFO
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_STUDIO_SOUND_INFO.Buffer
instance at the specified memory.static @Nullable FMOD_STUDIO_SOUND_INFO
createSafe
(long address) static @Nullable FMOD_STUDIO_SOUND_INFO.Buffer
createSafe
(long address, int capacity) exinfo()
exinfo
(Consumer<FMOD_CREATESOUNDEXINFO> consumer) Passes theexinfo
field to the specifiedConsumer
.exinfo
(FMOD_CREATESOUNDEXINFO value) Copies the specifiedFMOD_CREATESOUNDEXINFO
to theexinfo
field.static FMOD_STUDIO_SOUND_INFO
malloc()
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_STUDIO_SOUND_INFO
malloc
(MemoryStack stack) Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated on the specifiedMemoryStack
.int
mode()
mode
(int value) Sets the specified value to themode
field.name_or_data
(int capacity) name_or_data
(ByteBuffer value) Sets the address of the specifiedByteBuffer
to thename_or_data
field.static FMOD_CREATESOUNDEXINFO
nexinfo
(long struct) Unsafe version ofexinfo()
.static void
nexinfo
(long struct, FMOD_CREATESOUNDEXINFO value) Unsafe version ofexinfo
.static int
nmode
(long struct) Unsafe version ofmode()
.static void
nmode
(long struct, int value) Unsafe version ofmode
.static ByteBuffer
nname_or_data
(long struct, int capacity) Unsafe version ofname_or_data
.static void
nname_or_data
(long struct, ByteBuffer value) Unsafe version ofname_or_data
.static int
nsubsoundindex
(long struct) Unsafe version ofsubsoundindex()
.static void
nsubsoundindex
(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.int
sizeof()
Returnssizeof(struct)
.int
subsoundindex
(int value) Sets the specified value to thesubsoundindex
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. -
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_INFO
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_STUDIO_SOUND_INFO>
-
name_or_data
- Returns:
- a
ByteBuffer
view of the data pointed to by thename_or_data
field.
-
mode
public int mode()- Returns:
- the value of the
mode
field.
-
exinfo
- Returns:
- a
FMOD_CREATESOUNDEXINFO
view of theexinfo
field.
-
subsoundindex
public int subsoundindex()- Returns:
- the value of the
subsoundindex
field.
-
name_or_data
Sets the address of the specifiedByteBuffer
to thename_or_data
field. -
mode
Sets the specified value to themode
field. -
exinfo
Copies the specifiedFMOD_CREATESOUNDEXINFO
to theexinfo
field. -
exinfo
Passes theexinfo
field to the specifiedConsumer
. -
subsoundindex
Sets the specified value to thesubsoundindex
field. -
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_INFO
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated withBufferUtils
. -
create
Returns a newFMOD_STUDIO_SOUND_INFO
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_STUDIO_SOUND_INFO.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFO
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_STUDIO_SOUND_INFO.Buffer
instance allocated on the specifiedMemoryStack
and 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
-