Package org.lwjgl.fmod
Class FMOD_CODEC_WAVEFORMAT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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 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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionFMOD_CODEC_WAVEFORMAT(ByteBuffer container) Creates aFMOD_CODEC_WAVEFORMATinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CODEC_WAVEFORMATcalloc()Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withmemCalloc.static FMOD_CODEC_WAVEFORMAT.Buffercalloc(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withmemCalloc.static FMOD_CODEC_WAVEFORMAT.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_CODEC_WAVEFORMATcalloc(MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMATinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intchannelmask(int value) Sets the specified value to thechannelmaskfield.intchannelorder(int value) Sets the specified value to thechannelorderfield.intchannels()channels(int value) Sets the specified value to thechannelsfield.static FMOD_CODEC_WAVEFORMATcreate()Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withBufferUtils.static FMOD_CODEC_WAVEFORMAT.Buffercreate(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withBufferUtils.static FMOD_CODEC_WAVEFORMATcreate(long address) Returns a newFMOD_CODEC_WAVEFORMATinstance for the specified memory address.static FMOD_CODEC_WAVEFORMAT.Buffercreate(long address, int capacity) Create aFMOD_CODEC_WAVEFORMAT.Bufferinstance at the specified memory.static @Nullable FMOD_CODEC_WAVEFORMATcreateSafe(long address) static @Nullable FMOD_CODEC_WAVEFORMAT.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.intfrequency(int value) Sets the specified value to thefrequencyfield.intlengthbytes(int value) Sets the specified value to thelengthbytesfield.intlengthpcm(int value) Sets the specified value to thelengthpcmfield.intloopend()loopend(int value) Sets the specified value to theloopendfield.intloopstart(int value) Sets the specified value to theloopstartfield.static FMOD_CODEC_WAVEFORMATmalloc()Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withmemAlloc.static FMOD_CODEC_WAVEFORMAT.Buffermalloc(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withmemAlloc.static FMOD_CODEC_WAVEFORMAT.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_CODEC_WAVEFORMATmalloc(MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMATinstance allocated on the specifiedMemoryStack.intmode()mode(int value) Sets the specified value to themodefield.@Nullable ByteBuffername()name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thenamefield.@Nullable Stringstatic intnchannelmask(long struct) Unsafe version ofchannelmask().static voidnchannelmask(long struct, int value) Unsafe version ofchannelmask.static intnchannelorder(long struct) Unsafe version ofchannelorder().static voidnchannelorder(long struct, int value) Unsafe version ofchannelorder.static intnchannels(long struct) Unsafe version ofchannels().static voidnchannels(long struct, int value) Unsafe version ofchannels.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnfrequency(long struct) Unsafe version offrequency().static voidnfrequency(long struct, int value) Unsafe version offrequency.static intnlengthbytes(long struct) Unsafe version oflengthbytes().static voidnlengthbytes(long struct, int value) Unsafe version oflengthbytes.static intnlengthpcm(long struct) Unsafe version oflengthpcm().static voidnlengthpcm(long struct, int value) Unsafe version oflengthpcm.static intnloopend(long struct) Unsafe version ofloopend().static voidnloopend(long struct, int value) Unsafe version ofloopend.static intnloopstart(long struct) Unsafe version ofloopstart().static voidnloopstart(long struct, int value) Unsafe version ofloopstart.static intnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, int value) Unsafe version ofmode.static @Nullable ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, @Nullable ByteBuffer value) Unsafe version ofname.static @Nullable StringnnameString(long struct) Unsafe version ofnameString().static intnpcmblocksize(long struct) Unsafe version ofpcmblocksize().static voidnpcmblocksize(long struct, int value) Unsafe version ofpcmblocksize.static floatnpeakvolume(long struct) Unsafe version ofpeakvolume().static voidnpeakvolume(long struct, float value) Unsafe version ofpeakvolume.intpcmblocksize(int value) Sets the specified value to thepcmblocksizefield.floatpeakvolume(float value) Sets the specified value to thepeakvolumefield.set(@Nullable 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.set(FMOD_CODEC_WAVEFORMAT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
NAME
public static final int NAMEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
CHANNELS
public static final int CHANNELSThe struct member offsets. -
FREQUENCY
public static final int FREQUENCYThe struct member offsets. -
LENGTHBYTES
public static final int LENGTHBYTESThe struct member offsets. -
LENGTHPCM
public static final int LENGTHPCMThe struct member offsets. -
PCMBLOCKSIZE
public static final int PCMBLOCKSIZEThe struct member offsets. -
LOOPSTART
public static final int LOOPSTARTThe struct member offsets. -
LOOPEND
public static final int LOOPENDThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
CHANNELMASK
public static final int CHANNELMASKThe struct member offsets. -
CHANNELORDER
public static final int CHANNELORDERThe struct member offsets. -
PEAKVOLUME
public static final int PEAKVOLUMEThe struct member offsets.
-
-
Constructor Details
-
FMOD_CODEC_WAVEFORMAT
Creates aFMOD_CODEC_WAVEFORMATinstance 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_WAVEFORMAT>
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
channels
public int channels()- Returns:
- the value of the
channelsfield.
-
frequency
public int frequency()- Returns:
- the value of the
frequencyfield.
-
lengthbytes
public int lengthbytes()- Returns:
- the value of the
lengthbytesfield.
-
lengthpcm
public int lengthpcm()- Returns:
- the value of the
lengthpcmfield.
-
pcmblocksize
public int pcmblocksize()- Returns:
- the value of the
pcmblocksizefield.
-
loopstart
public int loopstart()- Returns:
- the value of the
loopstartfield.
-
loopend
public int loopend()- Returns:
- the value of the
loopendfield.
-
mode
public int mode()- Returns:
- the value of the
modefield.
-
channelmask
public int channelmask()- Returns:
- the value of the
channelmaskfield.
-
channelorder
public int channelorder()- Returns:
- the value of the
channelorderfield.
-
peakvolume
public float peakvolume()- Returns:
- the value of the
peakvolumefield.
-
name
Sets the address of the specified encoded string to thenamefield. -
format
Sets the specified value to theformatfield. -
channels
Sets the specified value to thechannelsfield. -
frequency
Sets the specified value to thefrequencyfield. -
lengthbytes
Sets the specified value to thelengthbytesfield. -
lengthpcm
Sets the specified value to thelengthpcmfield. -
pcmblocksize
Sets the specified value to thepcmblocksizefield. -
loopstart
Sets the specified value to theloopstartfield. -
loopend
Sets the specified value to theloopendfield. -
mode
Sets the specified value to themodefield. -
channelmask
Sets the specified value to thechannelmaskfield. -
channelorder
Sets the specified value to thechannelorderfield. -
peakvolume
Sets the specified value to thepeakvolumefield. -
set
public FMOD_CODEC_WAVEFORMAT set(@Nullable 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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_WAVEFORMATinstance allocated withBufferUtils. -
create
Returns a newFMOD_CODEC_WAVEFORMATinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_CODEC_WAVEFORMAT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_WAVEFORMATinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_WAVEFORMATinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_WAVEFORMAT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
nformat
public static int nformat(long struct) Unsafe version offormat(). -
nchannels
public static int nchannels(long struct) Unsafe version ofchannels(). -
nfrequency
public static int nfrequency(long struct) Unsafe version offrequency(). -
nlengthbytes
public static int nlengthbytes(long struct) Unsafe version oflengthbytes(). -
nlengthpcm
public static int nlengthpcm(long struct) Unsafe version oflengthpcm(). -
npcmblocksize
public static int npcmblocksize(long struct) Unsafe version ofpcmblocksize(). -
nloopstart
public static int nloopstart(long struct) Unsafe version ofloopstart(). -
nloopend
public static int nloopend(long struct) Unsafe version ofloopend(). -
nmode
public static int nmode(long struct) Unsafe version ofmode(). -
nchannelmask
public static int nchannelmask(long struct) Unsafe version ofchannelmask(). -
nchannelorder
public static int nchannelorder(long struct) Unsafe version ofchannelorder(). -
npeakvolume
public static float npeakvolume(long struct) Unsafe version ofpeakvolume(). -
nname
Unsafe version ofname. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat. -
nchannels
public static void nchannels(long struct, int value) Unsafe version ofchannels. -
nfrequency
public static void nfrequency(long struct, int value) Unsafe version offrequency. -
nlengthbytes
public static void nlengthbytes(long struct, int value) Unsafe version oflengthbytes. -
nlengthpcm
public static void nlengthpcm(long struct, int value) Unsafe version oflengthpcm. -
npcmblocksize
public static void npcmblocksize(long struct, int value) Unsafe version ofpcmblocksize. -
nloopstart
public static void nloopstart(long struct, int value) Unsafe version ofloopstart. -
nloopend
public static void nloopend(long struct, int value) Unsafe version ofloopend. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode. -
nchannelmask
public static void nchannelmask(long struct, int value) Unsafe version ofchannelmask. -
nchannelorder
public static void nchannelorder(long struct, int value) Unsafe version ofchannelorder. -
npeakvolume
public static void npeakvolume(long struct, float value) Unsafe version ofpeakvolume.
-