Package org.lwjgl.fmod
Class FMOD_CODEC_DESCRIPTION
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class FMOD_CODEC_DESCRIPTION
extends Struct<FMOD_CODEC_DESCRIPTION>
implements NativeResource
struct FMOD_CODEC_DESCRIPTION {
unsigned int apiversion;
char const * name;
unsigned int version;
int defaultasstream;
FMOD_TIMEUNIT timeunits;
{@link FMOD_CODEC_OPEN_CALLBACKI FMOD_CODEC_OPEN_CALLBACK} open;
{@link FMOD_CODEC_CLOSE_CALLBACKI FMOD_CODEC_CLOSE_CALLBACK} close;
{@link FMOD_CODEC_READ_CALLBACKI FMOD_CODEC_READ_CALLBACK} read;
{@link FMOD_CODEC_GETLENGTH_CALLBACKI FMOD_CODEC_GETLENGTH_CALLBACK} getlength;
{@link FMOD_CODEC_SETPOSITION_CALLBACKI FMOD_CODEC_SETPOSITION_CALLBACK} setposition;
{@link FMOD_CODEC_GETPOSITION_CALLBACKI FMOD_CODEC_GETPOSITION_CALLBACK} getposition;
{@link FMOD_CODEC_SOUNDCREATE_CALLBACKI FMOD_CODEC_SOUNDCREATE_CALLBACK} soundcreate;
{@link FMOD_CODEC_GETWAVEFORMAT_CALLBACKI FMOD_CODEC_GETWAVEFORMAT_CALLBACK} getwaveformat;
}
-
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 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.static final int
The struct member offsets.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_CODEC_DESCRIPTION
(ByteBuffer container) Creates aFMOD_CODEC_DESCRIPTION
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
apiversion
(int value) Sets the specified value to theapiversion
field.static FMOD_CODEC_DESCRIPTION
calloc()
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_DESCRIPTION
calloc
(MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.close$()
close$
(FMOD_CODEC_CLOSE_CALLBACKI value) Sets the specified value to theclose
field.static FMOD_CODEC_DESCRIPTION
create()
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated withBufferUtils
.create
(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withBufferUtils
.static FMOD_CODEC_DESCRIPTION
create
(long address) Returns a newFMOD_CODEC_DESCRIPTION
instance for the specified memory address.create
(long address, int capacity) Create aFMOD_CODEC_DESCRIPTION.Buffer
instance at the specified memory.static @Nullable FMOD_CODEC_DESCRIPTION
createSafe
(long address) static @Nullable FMOD_CODEC_DESCRIPTION.Buffer
createSafe
(long address, int capacity) int
defaultasstream
(int value) Sets the specified value to thedefaultasstream
field.Sets the specified value to thegetlength
field.Sets the specified value to thegetposition
field.Sets the specified value to thegetwaveformat
field.static FMOD_CODEC_DESCRIPTION
malloc()
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_CODEC_DESCRIPTION
malloc
(MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION
instance allocated on the specifiedMemoryStack
.name()
name
(ByteBuffer value) Sets the address of the specified encoded string to thename
field.static int
napiversion
(long struct) Unsafe version ofapiversion()
.static void
napiversion
(long struct, int value) Unsafe version ofapiversion
.static FMOD_CODEC_CLOSE_CALLBACK
nclose$
(long struct) Unsafe version ofclose$()
.static void
nclose$
(long struct, FMOD_CODEC_CLOSE_CALLBACKI value) Unsafe version ofclose$
.static int
ndefaultasstream
(long struct) Unsafe version ofdefaultasstream()
.static void
ndefaultasstream
(long struct, int value) Unsafe version ofdefaultasstream
.ngetlength
(long struct) Unsafe version ofgetlength()
.static void
ngetlength
(long struct, FMOD_CODEC_GETLENGTH_CALLBACKI value) Unsafe version ofgetlength
.ngetposition
(long struct) Unsafe version ofgetposition()
.static void
ngetposition
(long struct, FMOD_CODEC_GETPOSITION_CALLBACKI value) Unsafe version ofgetposition
.ngetwaveformat
(long struct) Unsafe version ofgetwaveformat()
.static void
ngetwaveformat
(long struct, FMOD_CODEC_GETWAVEFORMAT_CALLBACKI value) Unsafe version ofgetwaveformat
.static ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, ByteBuffer value) Unsafe version ofname
.static String
nnameString
(long struct) Unsafe version ofnameString()
.static FMOD_CODEC_OPEN_CALLBACK
nopen
(long struct) Unsafe version ofopen()
.static void
nopen
(long struct, FMOD_CODEC_OPEN_CALLBACKI value) Unsafe version ofopen
.static FMOD_CODEC_READ_CALLBACK
nread
(long struct) Unsafe version ofread()
.static void
nread
(long struct, FMOD_CODEC_READ_CALLBACKI value) Unsafe version ofread
.nsetposition
(long struct) Unsafe version ofsetposition()
.static void
nsetposition
(long struct, FMOD_CODEC_SETPOSITION_CALLBACKI value) Unsafe version ofsetposition
.nsoundcreate
(long struct) Unsafe version ofsoundcreate()
.static void
nsoundcreate
(long struct, FMOD_CODEC_SOUNDCREATE_CALLBACKI value) Unsafe version ofsoundcreate
.static int
ntimeunits
(long struct) Unsafe version oftimeunits()
.static void
ntimeunits
(long struct, int value) Unsafe version oftimeunits
.static int
nversion
(long struct) Unsafe version ofversion()
.static void
nversion
(long struct, int value) Unsafe version ofversion
.open()
open
(FMOD_CODEC_OPEN_CALLBACKI value) Sets the specified value to theopen
field.read()
read
(FMOD_CODEC_READ_CALLBACKI value) Sets the specified value to theread
field.set
(int apiversion, ByteBuffer name, int version, int defaultasstream, int timeunits, FMOD_CODEC_OPEN_CALLBACKI open, FMOD_CODEC_CLOSE_CALLBACKI close$, FMOD_CODEC_READ_CALLBACKI read, FMOD_CODEC_GETLENGTH_CALLBACKI getlength, FMOD_CODEC_SETPOSITION_CALLBACKI setposition, FMOD_CODEC_GETPOSITION_CALLBACKI getposition, FMOD_CODEC_SOUNDCREATE_CALLBACKI soundcreate, FMOD_CODEC_GETWAVEFORMAT_CALLBACKI getwaveformat) Initializes this struct with the specified values.Copies the specified struct data to this struct.Sets the specified value to thesetposition
field.int
sizeof()
Returnssizeof(struct)
.Sets the specified value to thesoundcreate
field.int
timeunits
(int value) Sets the specified value to thetimeunits
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
version()
version
(int value) Sets the specified value to theversion
field.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. -
APIVERSION
public static final int APIVERSIONThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
VERSION
public static final int VERSIONThe struct member offsets. -
DEFAULTASSTREAM
public static final int DEFAULTASSTREAMThe struct member offsets. -
TIMEUNITS
public static final int TIMEUNITSThe struct member offsets. -
OPEN
public static final int OPENThe struct member offsets. -
CLOSE
public static final int CLOSEThe struct member offsets. -
READ
public static final int READThe struct member offsets. -
GETLENGTH
public static final int GETLENGTHThe struct member offsets. -
SETPOSITION
public static final int SETPOSITIONThe struct member offsets. -
GETPOSITION
public static final int GETPOSITIONThe struct member offsets. -
SOUNDCREATE
public static final int SOUNDCREATEThe struct member offsets. -
GETWAVEFORMAT
public static final int GETWAVEFORMATThe struct member offsets.
-
-
Constructor Details
-
FMOD_CODEC_DESCRIPTION
Creates aFMOD_CODEC_DESCRIPTION
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_CODEC_DESCRIPTION>
-
apiversion
public int apiversion()- Returns:
- the value of the
apiversion
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
version
public int version()- Returns:
- the value of the
version
field.
-
defaultasstream
public int defaultasstream()- Returns:
- the value of the
defaultasstream
field.
-
timeunits
public int timeunits()- Returns:
- the value of the
timeunits
field.
-
open
- Returns:
- the value of the
open
field.
-
close$
- Returns:
- the value of the
close
field.
-
read
- Returns:
- the value of the
read
field.
-
getlength
- Returns:
- the value of the
getlength
field.
-
setposition
- Returns:
- the value of the
setposition
field.
-
getposition
- Returns:
- the value of the
getposition
field.
-
soundcreate
- Returns:
- the value of the
soundcreate
field.
-
getwaveformat
- Returns:
- the value of the
getwaveformat
field.
-
apiversion
Sets the specified value to theapiversion
field. -
name
Sets the address of the specified encoded string to thename
field. -
version
Sets the specified value to theversion
field. -
defaultasstream
Sets the specified value to thedefaultasstream
field. -
timeunits
Sets the specified value to thetimeunits
field. -
open
Sets the specified value to theopen
field. -
close$
Sets the specified value to theclose
field. -
read
Sets the specified value to theread
field. -
getlength
Sets the specified value to thegetlength
field. -
setposition
Sets the specified value to thesetposition
field. -
getposition
Sets the specified value to thegetposition
field. -
soundcreate
Sets the specified value to thesoundcreate
field. -
getwaveformat
Sets the specified value to thegetwaveformat
field. -
set
public FMOD_CODEC_DESCRIPTION set(int apiversion, ByteBuffer name, int version, int defaultasstream, int timeunits, FMOD_CODEC_OPEN_CALLBACKI open, FMOD_CODEC_CLOSE_CALLBACKI close$, FMOD_CODEC_READ_CALLBACKI read, FMOD_CODEC_GETLENGTH_CALLBACKI getlength, FMOD_CODEC_SETPOSITION_CALLBACKI setposition, FMOD_CODEC_GETPOSITION_CALLBACKI getposition, FMOD_CODEC_SOUNDCREATE_CALLBACKI soundcreate, FMOD_CODEC_GETWAVEFORMAT_CALLBACKI getwaveformat) 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_CODEC_DESCRIPTION
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated withBufferUtils
. -
create
Returns a newFMOD_CODEC_DESCRIPTION
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_CODEC_DESCRIPTION.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_DESCRIPTION
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_DESCRIPTION.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
napiversion
public static int napiversion(long struct) Unsafe version ofapiversion()
. -
nname
Unsafe version ofname()
. -
nnameString
Unsafe version ofnameString()
. -
nversion
public static int nversion(long struct) Unsafe version ofversion()
. -
ndefaultasstream
public static int ndefaultasstream(long struct) Unsafe version ofdefaultasstream()
. -
ntimeunits
public static int ntimeunits(long struct) Unsafe version oftimeunits()
. -
nopen
Unsafe version ofopen()
. -
nclose$
Unsafe version ofclose$()
. -
nread
Unsafe version ofread()
. -
ngetlength
Unsafe version ofgetlength()
. -
nsetposition
Unsafe version ofsetposition()
. -
ngetposition
Unsafe version ofgetposition()
. -
nsoundcreate
Unsafe version ofsoundcreate()
. -
ngetwaveformat
Unsafe version ofgetwaveformat()
. -
napiversion
public static void napiversion(long struct, int value) Unsafe version ofapiversion
. -
nname
Unsafe version ofname
. -
nversion
public static void nversion(long struct, int value) Unsafe version ofversion
. -
ndefaultasstream
public static void ndefaultasstream(long struct, int value) Unsafe version ofdefaultasstream
. -
ntimeunits
public static void ntimeunits(long struct, int value) Unsafe version oftimeunits
. -
nopen
Unsafe version ofopen
. -
nclose$
Unsafe version ofclose$
. -
nread
Unsafe version ofread
. -
ngetlength
Unsafe version ofgetlength
. -
nsetposition
Unsafe version ofsetposition
. -
ngetposition
Unsafe version ofgetposition
. -
nsoundcreate
Unsafe version ofsoundcreate
. -
ngetwaveformat
Unsafe version ofgetwaveformat
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-