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;
FMOD_CODEC_OPEN_CALLBACK open;
FMOD_CODEC_CLOSE_CALLBACK close;
FMOD_CODEC_READ_CALLBACK read;
FMOD_CODEC_GETLENGTH_CALLBACK getlength;
FMOD_CODEC_SETPOSITION_CALLBACK setposition;
FMOD_CODEC_GETPOSITION_CALLBACK getposition;
FMOD_CODEC_SOUNDCREATE_CALLBACK soundcreate;
FMOD_CODEC_GETWAVEFORMAT_CALLBACK getwaveformat;
}-
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 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.static final intThe struct member offsets.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_CODEC_DESCRIPTION(ByteBuffer container) Creates aFMOD_CODEC_DESCRIPTIONinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintapiversion(int value) Sets the specified value to theapiversionfield.static FMOD_CODEC_DESCRIPTIONcalloc()Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated withmemCalloc.calloc(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_DESCRIPTIONcalloc(MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.close$()close$(FMOD_CODEC_CLOSE_CALLBACKI value) Sets the specified value to theclosefield.static FMOD_CODEC_DESCRIPTIONcreate()Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated withBufferUtils.create(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withBufferUtils.static FMOD_CODEC_DESCRIPTIONcreate(long address) Returns a newFMOD_CODEC_DESCRIPTIONinstance for the specified memory address.create(long address, int capacity) Create aFMOD_CODEC_DESCRIPTION.Bufferinstance at the specified memory.static @Nullable FMOD_CODEC_DESCRIPTIONcreateSafe(long address) static @Nullable FMOD_CODEC_DESCRIPTION.BuffercreateSafe(long address, int capacity) intdefaultasstream(int value) Sets the specified value to thedefaultasstreamfield.Sets the specified value to thegetlengthfield.Sets the specified value to thegetpositionfield.Sets the specified value to thegetwaveformatfield.static FMOD_CODEC_DESCRIPTIONmalloc()Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated withmemAlloc.malloc(int capacity) Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_CODEC_DESCRIPTIONmalloc(MemoryStack stack) Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static intnapiversion(long struct) Unsafe version ofapiversion().static voidnapiversion(long struct, int value) Unsafe version ofapiversion.static FMOD_CODEC_CLOSE_CALLBACKnclose$(long struct) Unsafe version ofclose$().static voidnclose$(long struct, FMOD_CODEC_CLOSE_CALLBACKI value) Unsafe version ofclose$.static intndefaultasstream(long struct) Unsafe version ofdefaultasstream().static voidndefaultasstream(long struct, int value) Unsafe version ofdefaultasstream.ngetlength(long struct) Unsafe version ofgetlength().static voidngetlength(long struct, FMOD_CODEC_GETLENGTH_CALLBACKI value) Unsafe version ofgetlength.ngetposition(long struct) Unsafe version ofgetposition().static voidngetposition(long struct, FMOD_CODEC_GETPOSITION_CALLBACKI value) Unsafe version ofgetposition.ngetwaveformat(long struct) Unsafe version ofgetwaveformat().static voidngetwaveformat(long struct, FMOD_CODEC_GETWAVEFORMAT_CALLBACKI value) Unsafe version ofgetwaveformat.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().static FMOD_CODEC_OPEN_CALLBACKnopen(long struct) Unsafe version ofopen().static voidnopen(long struct, FMOD_CODEC_OPEN_CALLBACKI value) Unsafe version ofopen.static FMOD_CODEC_READ_CALLBACKnread(long struct) Unsafe version ofread().static voidnread(long struct, FMOD_CODEC_READ_CALLBACKI value) Unsafe version ofread.nsetposition(long struct) Unsafe version ofsetposition().static voidnsetposition(long struct, FMOD_CODEC_SETPOSITION_CALLBACKI value) Unsafe version ofsetposition.nsoundcreate(long struct) Unsafe version ofsoundcreate().static voidnsoundcreate(long struct, FMOD_CODEC_SOUNDCREATE_CALLBACKI value) Unsafe version ofsoundcreate.static intntimeunits(long struct) Unsafe version oftimeunits().static voidntimeunits(long struct, int value) Unsafe version oftimeunits.static intnversion(long struct) Unsafe version ofversion().static voidnversion(long struct, int value) Unsafe version ofversion.open()open(FMOD_CODEC_OPEN_CALLBACKI value) Sets the specified value to theopenfield.read()read(FMOD_CODEC_READ_CALLBACKI value) Sets the specified value to thereadfield.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 thesetpositionfield.intsizeof()Returnssizeof(struct).Sets the specified value to thesoundcreatefield.inttimeunits(int value) Sets the specified value to thetimeunitsfield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intversion()version(int value) Sets the specified value to theversionfield.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. -
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_DESCRIPTIONinstance 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_CODEC_DESCRIPTION>
-
apiversion
public int apiversion()- Returns:
- the value of the
apiversionfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
version
public int version()- Returns:
- the value of the
versionfield.
-
defaultasstream
public int defaultasstream()- Returns:
- the value of the
defaultasstreamfield.
-
timeunits
public int timeunits()- Returns:
- the value of the
timeunitsfield.
-
open
- Returns:
- the value of the
openfield.
-
close$
- Returns:
- the value of the
closefield.
-
read
- Returns:
- the value of the
readfield.
-
getlength
- Returns:
- the value of the
getlengthfield.
-
setposition
- Returns:
- the value of the
setpositionfield.
-
getposition
- Returns:
- the value of the
getpositionfield.
-
soundcreate
- Returns:
- the value of the
soundcreatefield.
-
getwaveformat
- Returns:
- the value of the
getwaveformatfield.
-
apiversion
Sets the specified value to theapiversionfield. -
name
Sets the address of the specified encoded string to thenamefield. -
version
Sets the specified value to theversionfield. -
defaultasstream
Sets the specified value to thedefaultasstreamfield. -
timeunits
Sets the specified value to thetimeunitsfield. -
open
Sets the specified value to theopenfield. -
close$
Sets the specified value to theclosefield. -
read
Sets the specified value to thereadfield. -
getlength
Sets the specified value to thegetlengthfield. -
setposition
Sets the specified value to thesetpositionfield. -
getposition
Sets the specified value to thegetpositionfield. -
soundcreate
Sets the specified value to thesoundcreatefield. -
getwaveformat
Sets the specified value to thegetwaveformatfield. -
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_DESCRIPTIONinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated withBufferUtils. -
create
Returns a newFMOD_CODEC_DESCRIPTIONinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_CODEC_DESCRIPTION.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_DESCRIPTIONinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_DESCRIPTION.Bufferinstance allocated on the specifiedMemoryStackand 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
-