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.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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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_WAVEFORMAT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic FMOD_CODEC_WAVEFORMAT
calloc()
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated withmemCalloc
.static FMOD_CODEC_WAVEFORMAT.Buffer
calloc
(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withmemCalloc
.static FMOD_CODEC_WAVEFORMAT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_CODEC_WAVEFORMAT
calloc
(MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
channelmask
(int value) Sets the specified value to thechannelmask
field.int
channelorder
(int value) Sets the specified value to thechannelorder
field.int
channels()
channels
(int value) Sets the specified value to thechannels
field.static FMOD_CODEC_WAVEFORMAT
create()
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated withBufferUtils
.static FMOD_CODEC_WAVEFORMAT.Buffer
create
(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withBufferUtils
.static FMOD_CODEC_WAVEFORMAT
create
(long address) Returns a newFMOD_CODEC_WAVEFORMAT
instance for the specified memory address.static FMOD_CODEC_WAVEFORMAT.Buffer
create
(long address, int capacity) Create aFMOD_CODEC_WAVEFORMAT.Buffer
instance at the specified memory.static @Nullable FMOD_CODEC_WAVEFORMAT
createSafe
(long address) static @Nullable FMOD_CODEC_WAVEFORMAT.Buffer
createSafe
(long address, int capacity) int
format()
format
(int value) Sets the specified value to theformat
field.int
frequency
(int value) Sets the specified value to thefrequency
field.int
lengthbytes
(int value) Sets the specified value to thelengthbytes
field.int
lengthpcm
(int value) Sets the specified value to thelengthpcm
field.int
loopend()
loopend
(int value) Sets the specified value to theloopend
field.int
loopstart
(int value) Sets the specified value to theloopstart
field.static FMOD_CODEC_WAVEFORMAT
malloc()
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated withmemAlloc
.static FMOD_CODEC_WAVEFORMAT.Buffer
malloc
(int capacity) Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withmemAlloc
.static FMOD_CODEC_WAVEFORMAT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_CODEC_WAVEFORMAT
malloc
(MemoryStack stack) Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated on the specifiedMemoryStack
.int
mode()
mode
(int value) Sets the specified value to themode
field.@Nullable ByteBuffer
name()
name
(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thename
field.@Nullable String
static int
nchannelmask
(long struct) Unsafe version ofchannelmask()
.static void
nchannelmask
(long struct, int value) Unsafe version ofchannelmask
.static int
nchannelorder
(long struct) Unsafe version ofchannelorder()
.static void
nchannelorder
(long struct, int value) Unsafe version ofchannelorder
.static int
nchannels
(long struct) Unsafe version ofchannels()
.static void
nchannels
(long struct, int value) Unsafe version ofchannels
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nfrequency
(long struct) Unsafe version offrequency()
.static void
nfrequency
(long struct, int value) Unsafe version offrequency
.static int
nlengthbytes
(long struct) Unsafe version oflengthbytes()
.static void
nlengthbytes
(long struct, int value) Unsafe version oflengthbytes
.static int
nlengthpcm
(long struct) Unsafe version oflengthpcm()
.static void
nlengthpcm
(long struct, int value) Unsafe version oflengthpcm
.static int
nloopend
(long struct) Unsafe version ofloopend()
.static void
nloopend
(long struct, int value) Unsafe version ofloopend
.static int
nloopstart
(long struct) Unsafe version ofloopstart()
.static void
nloopstart
(long struct, int value) Unsafe version ofloopstart
.static int
nmode
(long struct) Unsafe version ofmode()
.static void
nmode
(long struct, int value) Unsafe version ofmode
.static @Nullable ByteBuffer
nname
(long struct) Unsafe version ofname()
.static void
nname
(long struct, @Nullable ByteBuffer value) Unsafe version ofname
.static @Nullable String
nnameString
(long struct) Unsafe version ofnameString()
.static int
npcmblocksize
(long struct) Unsafe version ofpcmblocksize()
.static void
npcmblocksize
(long struct, int value) Unsafe version ofpcmblocksize
.static float
npeakvolume
(long struct) Unsafe version ofpeakvolume()
.static void
npeakvolume
(long struct, float value) Unsafe version ofpeakvolume
.int
pcmblocksize
(int value) Sets the specified value to thepcmblocksize
field.float
peakvolume
(float value) Sets the specified value to thepeakvolume
field.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.int
sizeof()
Returnssizeof(struct)
.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. -
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_WAVEFORMAT
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_WAVEFORMAT>
-
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.
-
format
public int format()- Returns:
- the value of the
format
field.
-
channels
public int channels()- Returns:
- the value of the
channels
field.
-
frequency
public int frequency()- Returns:
- the value of the
frequency
field.
-
lengthbytes
public int lengthbytes()- Returns:
- the value of the
lengthbytes
field.
-
lengthpcm
public int lengthpcm()- Returns:
- the value of the
lengthpcm
field.
-
pcmblocksize
public int pcmblocksize()- Returns:
- the value of the
pcmblocksize
field.
-
loopstart
public int loopstart()- Returns:
- the value of the
loopstart
field.
-
loopend
public int loopend()- Returns:
- the value of the
loopend
field.
-
mode
public int mode()- Returns:
- the value of the
mode
field.
-
channelmask
public int channelmask()- Returns:
- the value of the
channelmask
field.
-
channelorder
public int channelorder()- Returns:
- the value of the
channelorder
field.
-
peakvolume
public float peakvolume()- Returns:
- the value of the
peakvolume
field.
-
name
Sets the address of the specified encoded string to thename
field. -
format
Sets the specified value to theformat
field. -
channels
Sets the specified value to thechannels
field. -
frequency
Sets the specified value to thefrequency
field. -
lengthbytes
Sets the specified value to thelengthbytes
field. -
lengthpcm
Sets the specified value to thelengthpcm
field. -
pcmblocksize
Sets the specified value to thepcmblocksize
field. -
loopstart
Sets the specified value to theloopstart
field. -
loopend
Sets the specified value to theloopend
field. -
mode
Sets the specified value to themode
field. -
channelmask
Sets the specified value to thechannelmask
field. -
channelorder
Sets the specified value to thechannelorder
field. -
peakvolume
Sets the specified value to thepeakvolume
field. -
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_WAVEFORMAT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated withBufferUtils
. -
create
Returns a newFMOD_CODEC_WAVEFORMAT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_CODEC_WAVEFORMAT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_CODEC_WAVEFORMAT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_WAVEFORMAT
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_WAVEFORMAT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_CODEC_WAVEFORMAT.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-