Top Description Inners Fields Constructors Methods
org.lwjgl.fmod

public Class FMOD_CODEC_WAVEFORMAT

extends Struct<FMOD_CODEC_WAVEFORMAT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct FMOD_CODEC_WAVEFORMAT
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct FMOD_CODEC_WAVEFORMAT {
    char const * name;
    FMOD_SOUND_FORMAT format;
    int channels;
    int frequency;
    unsigned int lengthbytes;
    unsigned int lengthpcm;
    unsigned int pcmblocksize;
    int loopstart;
    int loopend;
    FMOD_MODE mode;
    FMOD_CHANNELMASK channelmask;
    FMOD_CHANNELORDER channelorder;
    float peakvolume;
}

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
CHANNELMASK

The struct member offsets.

public static final int
CHANNELORDER

The struct member offsets.

public static final int
CHANNELS

The struct member offsets.

public static final int
FORMAT

The struct member offsets.

public static final int
FREQUENCY

The struct member offsets.

public static final int
LENGTHBYTES

The struct member offsets.

public static final int
LENGTHPCM

The struct member offsets.

public static final int
LOOPEND

The struct member offsets.

public static final int
LOOPSTART

The struct member offsets.

public static final int
MODE

The struct member offsets.

public static final int
NAME

The struct member offsets.

public static final int
PCMBLOCKSIZE

The struct member offsets.

public static final int
PEAKVOLUME

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
FMOD_CODEC_WAVEFORMAT(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public static FMOD_CODEC_WAVEFORMAT
calloc()

Returns a new FMOD_CODEC_WAVEFORMAT instance allocated with memCalloc.

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

Returns a new FMOD_CODEC_WAVEFORMAT.Buffer instance allocated with memCalloc.

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

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

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

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

public int

Returns:

the value of the channelmask field.
channelmask
()

public FMOD_CODEC_WAVEFORMAT
channelmask(int value)

Sets the specified value to the channelmask field.

public int

Returns:

the value of the channelorder field.
channelorder
()

public FMOD_CODEC_WAVEFORMAT
channelorder(int value)

Sets the specified value to the channelorder field.

public int

Returns:

the value of the channels field.
channels
()

public FMOD_CODEC_WAVEFORMAT
channels(int value)

Sets the specified value to the channels field.

protected FMOD_CODEC_WAVEFORMAT
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_WAVEFORMAT
create()

Returns a new FMOD_CODEC_WAVEFORMAT instance allocated with BufferUtils.

public static FMOD_CODEC_WAVEFORMAT
create(long address)

Returns a new FMOD_CODEC_WAVEFORMAT instance for the specified memory address.

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

Returns a new FMOD_CODEC_WAVEFORMAT.Buffer instance allocated with BufferUtils.

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

Create a FMOD_CODEC_WAVEFORMAT.Buffer instance at the specified memory.

public static FMOD_CODEC_WAVEFORMAT
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public int

Returns:

the value of the format field.
format
()

public FMOD_CODEC_WAVEFORMAT
format(int value)

Sets the specified value to the format field.

public int

Returns:

the value of the frequency field.
frequency
()

public FMOD_CODEC_WAVEFORMAT
frequency(int value)

Sets the specified value to the frequency field.

public int

Returns:

the value of the lengthbytes field.
lengthbytes
()

public FMOD_CODEC_WAVEFORMAT
lengthbytes(int value)

Sets the specified value to the lengthbytes field.

public int

Returns:

the value of the lengthpcm field.
lengthpcm
()

public FMOD_CODEC_WAVEFORMAT
lengthpcm(int value)

Sets the specified value to the lengthpcm field.

public int

Returns:

the value of the loopend field.
loopend
()

public FMOD_CODEC_WAVEFORMAT
loopend(int value)

Sets the specified value to the loopend field.

public int

Returns:

the value of the loopstart field.
loopstart
()

public FMOD_CODEC_WAVEFORMAT
loopstart(int value)

Sets the specified value to the loopstart field.

public static FMOD_CODEC_WAVEFORMAT
malloc()

Returns a new FMOD_CODEC_WAVEFORMAT instance allocated with memAlloc.

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

Returns a new FMOD_CODEC_WAVEFORMAT.Buffer instance allocated with memAlloc.

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

Returns a new FMOD_CODEC_WAVEFORMAT instance allocated on the specified MemoryStack.

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

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

public int

Returns:

the value of the mode field.
mode
()

public FMOD_CODEC_WAVEFORMAT
mode(int value)

Sets the specified value to the mode field.

public ByteBuffer

Returns:

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

public FMOD_CODEC_WAVEFORMAT
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
nchannelmask(long struct)

Unsafe version of channelmask.

public static void
nchannelmask(long struct, int value)

Unsafe version of channelmask.

public static int
nchannelorder(long struct)

Unsafe version of channelorder.

public static void
nchannelorder(long struct, int value)

Unsafe version of channelorder.

public static int
nchannels(long struct)

Unsafe version of channels.

public static void
nchannels(long struct, int value)

Unsafe version of channels.

public static int
nformat(long struct)

Unsafe version of format.

public static void
nformat(long struct, int value)

Unsafe version of format.

public static int
nfrequency(long struct)

Unsafe version of frequency.

public static void
nfrequency(long struct, int value)

Unsafe version of frequency.

public static int
nlengthbytes(long struct)

Unsafe version of lengthbytes.

public static void
nlengthbytes(long struct, int value)

Unsafe version of lengthbytes.

public static int
nlengthpcm(long struct)

Unsafe version of lengthpcm.

public static void
nlengthpcm(long struct, int value)

Unsafe version of lengthpcm.

public static int
nloopend(long struct)

Unsafe version of loopend.

public static void
nloopend(long struct, int value)

Unsafe version of loopend.

public static int
nloopstart(long struct)

Unsafe version of loopstart.

public static void
nloopstart(long struct, int value)

Unsafe version of loopstart.

public static int
nmode(long struct)

Unsafe version of mode.

public static void
nmode(long struct, int value)

Unsafe version of mode.

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 int
npcmblocksize(long struct)

Unsafe version of pcmblocksize.

public static void
npcmblocksize(long struct, int value)

Unsafe version of pcmblocksize.

public static float
npeakvolume(long struct)

Unsafe version of peakvolume.

public static void
npeakvolume(long struct, float value)

Unsafe version of peakvolume.

public int

Returns:

the value of the pcmblocksize field.
pcmblocksize
()

public FMOD_CODEC_WAVEFORMAT
pcmblocksize(int value)

Sets the specified value to the pcmblocksize field.

public float

Returns:

the value of the peakvolume field.
peakvolume
()

public FMOD_CODEC_WAVEFORMAT
peakvolume(float value)

Sets the specified value to the peakvolume field.

public FMOD_CODEC_WAVEFORMAT
set(ByteBuffer name, int format, int channels, int frequency, int lengthbytes, int lengthpcm, int pcmblocksize, int loopstart, int loopend, int mode, int channelmask, int channelorder, float peakvolume)

Initializes this struct with the specified values.

public FMOD_CODEC_WAVEFORMAT

Returns:

this struct
set
(FMOD_CODEC_WAVEFORMAT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate