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.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 size in bytes.static final intThe 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_ARRAYinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbufferchannelmask(IntBuffer value) Sets the address of the specifiedIntBufferto thebufferchannelmaskfield.buffernumchannels(IntBuffer value) Sets the address of the specifiedIntBufferto thebuffernumchannelsfield.buffers()buffers(PointerBuffer value) Sets the address of the specifiedPointerBufferto thebuffersfield.static FMOD_DSP_BUFFER_ARRAYcalloc()Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated withmemCalloc.static FMOD_DSP_BUFFER_ARRAY.Buffercalloc(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withmemCalloc.static FMOD_DSP_BUFFER_ARRAY.Buffercalloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_BUFFER_ARRAYcalloc(MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static FMOD_DSP_BUFFER_ARRAYcreate()Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated withBufferUtils.static FMOD_DSP_BUFFER_ARRAY.Buffercreate(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withBufferUtils.static FMOD_DSP_BUFFER_ARRAYcreate(long address) Returns a newFMOD_DSP_BUFFER_ARRAYinstance for the specified memory address.static FMOD_DSP_BUFFER_ARRAY.Buffercreate(long address, int capacity) Create aFMOD_DSP_BUFFER_ARRAY.Bufferinstance at the specified memory.static @Nullable FMOD_DSP_BUFFER_ARRAYcreateSafe(long address) static @Nullable FMOD_DSP_BUFFER_ARRAY.BuffercreateSafe(long address, int capacity) static FMOD_DSP_BUFFER_ARRAYmalloc()Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated withmemAlloc.static FMOD_DSP_BUFFER_ARRAY.Buffermalloc(int capacity) Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withmemAlloc.static FMOD_DSP_BUFFER_ARRAY.Buffermalloc(int capacity, MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated on the specifiedMemoryStack.static FMOD_DSP_BUFFER_ARRAYmalloc(MemoryStack stack) Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated on the specifiedMemoryStack.static IntBuffernbufferchannelmask(long struct) Unsafe version ofbufferchannelmask.static voidnbufferchannelmask(long struct, IntBuffer value) Unsafe version ofbufferchannelmask.static IntBuffernbuffernumchannels(long struct) Unsafe version ofbuffernumchannels.static voidnbuffernumchannels(long struct, IntBuffer value) Unsafe version ofbuffernumchannels.static PointerBuffernbuffers(long struct) Unsafe version ofbuffers.static voidnbuffers(long struct, PointerBuffer value) Unsafe version ofbuffers.static intnnumbuffers(long struct) Unsafe version ofnumbuffers().static voidnnumbuffers(long struct, int value) Sets the specified value to thenumbuffersfield of the specifiedstruct.static intnspeakermode(long struct) Unsafe version ofspeakermode().static voidnspeakermode(long struct, int value) Unsafe version ofspeakermode.intnumbuffers(int value) Sets the specified value to thenumbuffersfield.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.intsizeof()Returnssizeof(struct).intspeakermode(int value) Sets the specified value to thespeakermodefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
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_ARRAYinstance 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_DSP_BUFFER_ARRAY>
-
numbuffers
public int numbuffers()- Returns:
- the value of the
numbuffersfield.
-
buffernumchannels
- Returns:
- a
IntBufferview of the data pointed to by thebuffernumchannelsfield.
-
bufferchannelmask
- Returns:
- a
IntBufferview of the data pointed to by thebufferchannelmaskfield.
-
buffers
- Returns:
- a
PointerBufferview of the data pointed to by thebuffersfield.
-
speakermode
public int speakermode()- Returns:
- the value of the
speakermodefield.
-
numbuffers
Sets the specified value to thenumbuffersfield. -
buffernumchannels
Sets the address of the specifiedIntBufferto thebuffernumchannelsfield. -
bufferchannelmask
Sets the address of the specifiedIntBufferto thebufferchannelmaskfield. -
buffers
Sets the address of the specifiedPointerBufferto thebuffersfield. -
speakermode
Sets the specified value to thespeakermodefield. -
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_ARRAYinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated withBufferUtils. -
create
Returns a newFMOD_DSP_BUFFER_ARRAYinstance for the specified memory address. -
createSafe
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aFMOD_DSP_BUFFER_ARRAY.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAYinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newFMOD_DSP_BUFFER_ARRAY.Bufferinstance allocated on the specifiedMemoryStackand 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 thenumbuffersfield 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
-