Class XrSoundFieldConfigBD
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct XrSoundFieldConfigBD {
XrStructureType type;
void const * next;
XrBool32 enabled;
XrQuaternionf orientation;
XrSpace baseSpace;
float mainVolume;
float lfeGain;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface 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 size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSoundFieldConfigBD(ByteBuffer container) Creates aXrSoundFieldConfigBDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongSets the specified value to thebaseSpacefield.static XrSoundFieldConfigBDcalloc()Returns a newXrSoundFieldConfigBDinstance allocated withmemCalloc.static XrSoundFieldConfigBD.Buffercalloc(int capacity) Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withmemCalloc.static XrSoundFieldConfigBD.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSoundFieldConfigBD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSoundFieldConfigBDcalloc(MemoryStack stack) Returns a newXrSoundFieldConfigBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSoundFieldConfigBDcreate()Returns a newXrSoundFieldConfigBDinstance allocated withBufferUtils.static XrSoundFieldConfigBD.Buffercreate(int capacity) Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withBufferUtils.static XrSoundFieldConfigBDcreate(long address) Returns a newXrSoundFieldConfigBDinstance for the specified memory address.static XrSoundFieldConfigBD.Buffercreate(long address, int capacity) Create aXrSoundFieldConfigBD.Bufferinstance at the specified memory.static @Nullable XrSoundFieldConfigBDcreateSafe(long address) static @Nullable XrSoundFieldConfigBD.BuffercreateSafe(long address, int capacity) booleanenabled()enabled(boolean value) Sets the specified value to theenabledfield.floatlfeGain()lfeGain(float value) Sets the specified value to thelfeGainfield.floatmainVolume(float value) Sets the specified value to themainVolumefield.static XrSoundFieldConfigBDmalloc()Returns a newXrSoundFieldConfigBDinstance allocated withmemAlloc.static XrSoundFieldConfigBD.Buffermalloc(int capacity) Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withmemAlloc.static XrSoundFieldConfigBD.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSoundFieldConfigBD.Bufferinstance allocated on the specifiedMemoryStack.static XrSoundFieldConfigBDmalloc(MemoryStack stack) Returns a newXrSoundFieldConfigBDinstance allocated on the specifiedMemoryStack.static longnbaseSpace(long struct) Unsafe version ofbaseSpace().static voidnbaseSpace(long struct, XrSpace value) Unsafe version ofbaseSpace.static intnenabled(long struct) Unsafe version ofenabled().static voidnenabled(long struct, int value) Unsafe version ofenabled.longnext()next(long value) Sets the specified value to thenextfield.Prepends the specifiedXrSoundFieldChannelDefinitionAmbixBDvalue to thenextchain.Prepends the specifiedXrSoundFieldChannelDefinitionFumaBDvalue to thenextchain.Prepends the specifiedXrSoundFieldChannelDefinitionSurroundBDvalue to thenextchain.static floatnlfeGain(long struct) Unsafe version oflfeGain().static voidnlfeGain(long struct, float value) Unsafe version oflfeGain.static floatnmainVolume(long struct) Unsafe version ofmainVolume().static voidnmainVolume(long struct, float value) Unsafe version ofmainVolume.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static XrQuaternionfnorientation(long struct) Unsafe version oforientation().static voidnorientation(long struct, XrQuaternionf value) Unsafe version oforientation.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.orientation(Consumer<XrQuaternionf> consumer) Passes theorientationfield to the specifiedConsumer.orientation(XrQuaternionf value) Copies the specifiedXrQuaternionfto theorientationfield.set(int type, long next, boolean enabled, XrQuaternionf orientation, XrSpace baseSpace, float mainVolume, float lfeGain) Initializes this struct with the specified values.set(XrSoundFieldConfigBD src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SOUND_FIELD_CONFIG_BDvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface 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. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
ENABLED
public static final int ENABLEDThe struct member offsets. -
ORIENTATION
public static final int ORIENTATIONThe struct member offsets. -
BASESPACE
public static final int BASESPACEThe struct member offsets. -
MAINVOLUME
public static final int MAINVOLUMEThe struct member offsets. -
LFEGAIN
public static final int LFEGAINThe struct member offsets.
-
-
Constructor Details
-
XrSoundFieldConfigBD
Creates aXrSoundFieldConfigBDinstance 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<XrSoundFieldConfigBD>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
enabled
- Returns:
- the value of the
enabledfield.
-
orientation
- Returns:
- a
XrQuaternionfview of theorientationfield.
-
baseSpace
- Returns:
- the value of the
baseSpacefield.
-
mainVolume
public float mainVolume()- Returns:
- the value of the
mainVolumefield.
-
lfeGain
public float lfeGain()- Returns:
- the value of the
lfeGainfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SOUND_FIELD_CONFIG_BDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
next
Prepends the specifiedXrSoundFieldChannelDefinitionAmbixBDvalue to thenextchain. -
next
Prepends the specifiedXrSoundFieldChannelDefinitionFumaBDvalue to thenextchain. -
next
Prepends the specifiedXrSoundFieldChannelDefinitionSurroundBDvalue to thenextchain. -
enabled
Sets the specified value to theenabledfield. -
orientation
Copies the specifiedXrQuaternionfto theorientationfield. -
orientation
Passes theorientationfield to the specifiedConsumer. -
baseSpace
Sets the specified value to thebaseSpacefield. -
mainVolume
Sets the specified value to themainVolumefield. -
lfeGain
Sets the specified value to thelfeGainfield. -
set
public XrSoundFieldConfigBD set(int type, long next, boolean enabled, XrQuaternionf orientation, XrSpace baseSpace, float mainVolume, float lfeGain) 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 newXrSoundFieldConfigBDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSoundFieldConfigBDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSoundFieldConfigBDinstance allocated withBufferUtils. -
create
Returns a newXrSoundFieldConfigBDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSoundFieldConfigBD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSoundFieldConfigBD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSoundFieldConfigBDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSoundFieldConfigBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSoundFieldConfigBD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSoundFieldConfigBD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nenabled
public static int nenabled(long struct) Unsafe version ofenabled(). -
norientation
Unsafe version oforientation(). -
nbaseSpace
public static long nbaseSpace(long struct) Unsafe version ofbaseSpace(). -
nmainVolume
public static float nmainVolume(long struct) Unsafe version ofmainVolume(). -
nlfeGain
public static float nlfeGain(long struct) Unsafe version oflfeGain(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nenabled
public static void nenabled(long struct, int value) Unsafe version ofenabled. -
norientation
Unsafe version oforientation. -
nbaseSpace
-
nmainVolume
public static void nmainVolume(long struct, float value) Unsafe version ofmainVolume. -
nlfeGain
public static void nlfeGain(long struct, float value) Unsafe version oflfeGain. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-