Package org.lwjgl.fmod
Class FMOD_DSP_BUFFER_ARRAY
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct FMOD_DSP_BUFFER_ARRAY {
int numbuffers;
int * buffernumchannels;
FMOD_CHANNELMASK * bufferchannelmask;
float ** buffers;
FMOD_SPEAKERMODE speakermode;
}
-
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 size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionFMOD_DSP_BUFFER_ARRAY
(ByteBuffer container) Creates aFMOD_DSP_BUFFER_ARRAY
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbufferchannelmask
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thebufferchannelmask
field.buffernumchannels
(IntBuffer value) Sets the address of the specifiedIntBuffer
to thebuffernumchannels
field.buffers()
buffers
(PointerBuffer value) Sets the address of the specifiedPointerBuffer
to thebuffers
field.static FMOD_DSP_BUFFER_ARRAY
calloc()
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated withmemCalloc
.static FMOD_DSP_BUFFER_ARRAY.Buffer
calloc
(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withmemCalloc
.static FMOD_DSP_BUFFER_ARRAY.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_BUFFER_ARRAY
calloc
(MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static FMOD_DSP_BUFFER_ARRAY
create()
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated withBufferUtils
.static FMOD_DSP_BUFFER_ARRAY.Buffer
create
(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withBufferUtils
.static FMOD_DSP_BUFFER_ARRAY
create
(long address) Returns a newFMOD_DSP_BUFFER_ARRAY
instance for the specified memory address.static FMOD_DSP_BUFFER_ARRAY.Buffer
create
(long address, int capacity) Create aFMOD_DSP_BUFFER_ARRAY.Buffer
instance at the specified memory.static @Nullable FMOD_DSP_BUFFER_ARRAY
createSafe
(long address) static @Nullable FMOD_DSP_BUFFER_ARRAY.Buffer
createSafe
(long address, int capacity) static FMOD_DSP_BUFFER_ARRAY
malloc()
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated withmemAlloc
.static FMOD_DSP_BUFFER_ARRAY.Buffer
malloc
(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withmemAlloc
.static FMOD_DSP_BUFFER_ARRAY.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated on the specifiedMemoryStack
.static FMOD_DSP_BUFFER_ARRAY
malloc
(MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated on the specifiedMemoryStack
.static IntBuffer
nbufferchannelmask
(long struct) Unsafe version ofbufferchannelmask
.static void
nbufferchannelmask
(long struct, IntBuffer value) Unsafe version ofbufferchannelmask
.static IntBuffer
nbuffernumchannels
(long struct) Unsafe version ofbuffernumchannels
.static void
nbuffernumchannels
(long struct, IntBuffer value) Unsafe version ofbuffernumchannels
.static PointerBuffer
nbuffers
(long struct) Unsafe version ofbuffers
.static void
nbuffers
(long struct, PointerBuffer value) Unsafe version ofbuffers
.static int
nnumbuffers
(long struct) Unsafe version ofnumbuffers()
.static void
nnumbuffers
(long struct, int value) Sets the specified value to thenumbuffers
field of the specifiedstruct
.static int
nspeakermode
(long struct) Unsafe version ofspeakermode()
.static void
nspeakermode
(long struct, int value) Unsafe version ofspeakermode
.int
numbuffers
(int value) Sets the specified value to thenumbuffers
field.set
(int numbuffers, IntBuffer buffernumchannels, IntBuffer bufferchannelmask, PointerBuffer buffers, int speakermode) Initializes this struct with the specified values.set
(FMOD_DSP_BUFFER_ARRAY src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
speakermode
(int value) Sets the specified value to thespeakermode
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
NUMBUFFERS
public static final int NUMBUFFERSThe struct member offsets. -
BUFFERNUMCHANNELS
public static final int BUFFERNUMCHANNELSThe struct member offsets. -
BUFFERCHANNELMASK
public static final int BUFFERCHANNELMASKThe struct member offsets. -
BUFFERS
public static final int BUFFERSThe struct member offsets. -
SPEAKERMODE
public static final int SPEAKERMODEThe struct member offsets.
-
-
Constructor Details
-
FMOD_DSP_BUFFER_ARRAY
Creates aFMOD_DSP_BUFFER_ARRAY
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_DSP_BUFFER_ARRAY>
-
numbuffers
public int numbuffers()- Returns:
- the value of the
numbuffers
field.
-
buffernumchannels
- Returns:
- a
IntBuffer
view of the data pointed to by thebuffernumchannels
field.
-
bufferchannelmask
- Returns:
- a
IntBuffer
view of the data pointed to by thebufferchannelmask
field.
-
buffers
- Returns:
- a
PointerBuffer
view of the data pointed to by thebuffers
field.
-
speakermode
public int speakermode()- Returns:
- the value of the
speakermode
field.
-
numbuffers
Sets the specified value to thenumbuffers
field. -
buffernumchannels
Sets the address of the specifiedIntBuffer
to thebuffernumchannels
field. -
bufferchannelmask
Sets the address of the specifiedIntBuffer
to thebufferchannelmask
field. -
buffers
Sets the address of the specifiedPointerBuffer
to thebuffers
field. -
speakermode
Sets the specified value to thespeakermode
field. -
set
public FMOD_DSP_BUFFER_ARRAY set(int numbuffers, IntBuffer buffernumchannels, IntBuffer bufferchannelmask, PointerBuffer buffers, int speakermode) 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_DSP_BUFFER_ARRAY
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated withBufferUtils
. -
create
Returns a newFMOD_DSP_BUFFER_ARRAY
instance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aFMOD_DSP_BUFFER_ARRAY.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnumbuffers
public static int nnumbuffers(long struct) Unsafe version ofnumbuffers()
. -
nbuffernumchannels
Unsafe version ofbuffernumchannels
. -
nbufferchannelmask
Unsafe version ofbufferchannelmask
. -
nbuffers
Unsafe version ofbuffers
. -
nspeakermode
public static int nspeakermode(long struct) Unsafe version ofspeakermode()
. -
nnumbuffers
public static void nnumbuffers(long struct, int value) Sets the specified value to thenumbuffers
field of the specifiedstruct
. -
nbuffernumchannels
Unsafe version ofbuffernumchannels
. -
nbufferchannelmask
Unsafe version ofbufferchannelmask
. -
nbuffers
Unsafe version ofbuffers
. -
nspeakermode
public static void nspeakermode(long struct, int value) Unsafe version ofspeakermode
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-