Top Description Inners Fields Constructors Methods
org.lwjgl.fmod

public Class FMOD_CODEC_DESCRIPTION

extends Struct<FMOD_CODEC_DESCRIPTION>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Codec structures

Layout


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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
APIVERSION

The struct member offsets.

public static final int
CLOSE

The struct member offsets.

public static final int
DEFAULTASSTREAM

The struct member offsets.

public static final int
GETLENGTH

The struct member offsets.

public static final int
GETPOSITION

The struct member offsets.

public static final int
GETWAVEFORMAT

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
OPEN

The struct member offsets.

public static final int
READ

The struct member offsets.

public static final int
SETPOSITION

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SOUNDCREATE

The struct member offsets.

public static final int
TIMEUNITS

The struct member offsets.

public static final int
VERSION

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
FMOD_CODEC_DESCRIPTION(long address, ByteBuffer container)

public
FMOD_CODEC_DESCRIPTION(ByteBuffer container)

Creates a FMOD_CODEC_DESCRIPTION instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the apiversion field.
apiversion
()

public FMOD_CODEC_DESCRIPTION
apiversion(int value)

Sets the specified value to the apiversion field.

public static FMOD_CODEC_DESCRIPTION
calloc()

Returns a new FMOD_CODEC_DESCRIPTION instance allocated with memCalloc.

public static FMOD_CODEC_DESCRIPTION.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new FMOD_CODEC_DESCRIPTION.Buffer instance allocated with memCalloc.

public static FMOD_CODEC_DESCRIPTION
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_CODEC_DESCRIPTION instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static FMOD_CODEC_DESCRIPTION.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_CODEC_DESCRIPTION.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public FMOD_CODEC_CLOSE_CALLBACK

Returns:

the value of the close field.
close$
()

public FMOD_CODEC_DESCRIPTION
close$(FMOD_CODEC_CLOSE_CALLBACKI value)

Sets the specified value to the close field.

protected FMOD_CODEC_DESCRIPTION
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static FMOD_CODEC_DESCRIPTION
create()

Returns a new FMOD_CODEC_DESCRIPTION instance allocated with BufferUtils.

public static FMOD_CODEC_DESCRIPTION
create(long address)

Returns a new FMOD_CODEC_DESCRIPTION instance for the specified memory address.

public static FMOD_CODEC_DESCRIPTION.Buffer
create(int
the buffer capacity
capacity
)

Returns a new FMOD_CODEC_DESCRIPTION.Buffer instance allocated with BufferUtils.

public static FMOD_CODEC_DESCRIPTION.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a FMOD_CODEC_DESCRIPTION.Buffer instance at the specified memory.

public static FMOD_CODEC_DESCRIPTION
createSafe(long address)

Like create, but returns null if address is NULL.

public static FMOD_CODEC_DESCRIPTION.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int

Returns:

the value of the defaultasstream field.
defaultasstream
()

public FMOD_CODEC_DESCRIPTION
defaultasstream(int value)

Sets the specified value to the defaultasstream field.

public FMOD_CODEC_GETLENGTH_CALLBACK

Returns:

the value of the getlength field.
getlength
()

public FMOD_CODEC_DESCRIPTION
getlength(FMOD_CODEC_GETLENGTH_CALLBACKI value)

Sets the specified value to the getlength field.

public FMOD_CODEC_GETPOSITION_CALLBACK

Returns:

the value of the getposition field.
getposition
()

public FMOD_CODEC_DESCRIPTION
getposition(FMOD_CODEC_GETPOSITION_CALLBACKI value)

Sets the specified value to the getposition field.

public FMOD_CODEC_GETWAVEFORMAT_CALLBACK

Returns:

the value of the getwaveformat field.
getwaveformat
()

public FMOD_CODEC_DESCRIPTION
getwaveformat(FMOD_CODEC_GETWAVEFORMAT_CALLBACKI value)

Sets the specified value to the getwaveformat field.

public static FMOD_CODEC_DESCRIPTION
malloc()

Returns a new FMOD_CODEC_DESCRIPTION instance allocated with memAlloc.

public static FMOD_CODEC_DESCRIPTION.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new FMOD_CODEC_DESCRIPTION.Buffer instance allocated with memAlloc.

public static FMOD_CODEC_DESCRIPTION
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_CODEC_DESCRIPTION instance allocated on the specified MemoryStack.

public static FMOD_CODEC_DESCRIPTION.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new FMOD_CODEC_DESCRIPTION.Buffer instance allocated on the specified MemoryStack.

public ByteBuffer

Returns:

a ByteBuffer view of the null-terminated string pointed to by the name field.
name
()

public FMOD_CODEC_DESCRIPTION
name(ByteBuffer value)

Sets the address of the specified encoded string to the name field.

public String

Returns:

the null-terminated string pointed to by the name field.
nameString
()

public static int
napiversion(long struct)

Unsafe version of apiversion.

public static void
napiversion(long struct, int value)

Unsafe version of apiversion.

public static FMOD_CODEC_CLOSE_CALLBACK
nclose$(long struct)

Unsafe version of close$.

public static void
nclose$(long struct, FMOD_CODEC_CLOSE_CALLBACKI value)

Unsafe version of close$.

public static int
ndefaultasstream(long struct)

Unsafe version of defaultasstream.

public static void
ndefaultasstream(long struct, int value)

Unsafe version of defaultasstream.

public static FMOD_CODEC_GETLENGTH_CALLBACK
ngetlength(long struct)

Unsafe version of getlength.

public static void
ngetlength(long struct, FMOD_CODEC_GETLENGTH_CALLBACKI value)

Unsafe version of getlength.

public static FMOD_CODEC_GETPOSITION_CALLBACK
ngetposition(long struct)

Unsafe version of getposition.

public static void
ngetposition(long struct, FMOD_CODEC_GETPOSITION_CALLBACKI value)

Unsafe version of getposition.

public static FMOD_CODEC_GETWAVEFORMAT_CALLBACK
ngetwaveformat(long struct)

Unsafe version of getwaveformat.

public static void
ngetwaveformat(long struct, FMOD_CODEC_GETWAVEFORMAT_CALLBACKI value)

Unsafe version of getwaveformat.

public static ByteBuffer
nname(long struct)

Unsafe version of name.

public static void
nname(long struct, ByteBuffer value)

Unsafe version of name.

public static String
nnameString(long struct)

Unsafe version of nameString.

public static FMOD_CODEC_OPEN_CALLBACK
nopen(long struct)

Unsafe version of open.

public static void
nopen(long struct, FMOD_CODEC_OPEN_CALLBACKI value)

Unsafe version of open.

public static FMOD_CODEC_READ_CALLBACK
nread(long struct)

Unsafe version of read.

public static void
nread(long struct, FMOD_CODEC_READ_CALLBACKI value)

Unsafe version of read.

public static FMOD_CODEC_SETPOSITION_CALLBACK
nsetposition(long struct)

Unsafe version of setposition.

public static void
nsetposition(long struct, FMOD_CODEC_SETPOSITION_CALLBACKI value)

Unsafe version of setposition.

public static FMOD_CODEC_SOUNDCREATE_CALLBACK
nsoundcreate(long struct)

Unsafe version of soundcreate.

public static void
nsoundcreate(long struct, FMOD_CODEC_SOUNDCREATE_CALLBACKI value)

Unsafe version of soundcreate.

public static int
ntimeunits(long struct)

Unsafe version of timeunits.

public static void
ntimeunits(long struct, int value)

Unsafe version of timeunits.

public static int
nversion(long struct)

Unsafe version of version.

public static void
nversion(long struct, int value)

Unsafe version of version.

public FMOD_CODEC_OPEN_CALLBACK

Returns:

the value of the open field.
open
()

public FMOD_CODEC_DESCRIPTION
open(FMOD_CODEC_OPEN_CALLBACKI value)

Sets the specified value to the open field.

public FMOD_CODEC_READ_CALLBACK

Returns:

the value of the read field.
read
()

public FMOD_CODEC_DESCRIPTION
read(FMOD_CODEC_READ_CALLBACKI value)

Sets the specified value to the read field.

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.

public FMOD_CODEC_DESCRIPTION

Returns:

this struct
set
(FMOD_CODEC_DESCRIPTION
the source struct
src
)

Copies the specified struct data to this struct.

public FMOD_CODEC_SETPOSITION_CALLBACK

Returns:

the value of the setposition field.
setposition
()

public FMOD_CODEC_DESCRIPTION
setposition(FMOD_CODEC_SETPOSITION_CALLBACKI value)

Sets the specified value to the setposition field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public FMOD_CODEC_SOUNDCREATE_CALLBACK

Returns:

the value of the soundcreate field.
soundcreate
()

public FMOD_CODEC_DESCRIPTION
soundcreate(FMOD_CODEC_SOUNDCREATE_CALLBACKI value)

Sets the specified value to the soundcreate field.

public int

Returns:

the value of the timeunits field.
timeunits
()

public FMOD_CODEC_DESCRIPTION
timeunits(int value)

Sets the specified value to the timeunits field.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

public int

Returns:

the value of the version field.
version
()

public FMOD_CODEC_DESCRIPTION
version(int value)

Sets the specified value to the version field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate