Class XrSoundObjectConfigBD
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct XrSoundObjectConfigBD {
XrStructureType type;
void const * next;
XrBool32 enabled;
XrPosef pose;
XrSpace baseSpace;
float mainVolume;
float reflectionGain;
XrBool32 enableDoppler;
XrSoundObjectDistanceAttenuationBD const * directSoundAttenuation;
XrSoundObjectDistanceAttenuationBD const * indirectSoundAttenuation;
}-
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 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
ConstructorsConstructorDescriptionXrSoundObjectConfigBD(ByteBuffer container) Creates aXrSoundObjectConfigBDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongSets the specified value to thebaseSpacefield.static XrSoundObjectConfigBDcalloc()Returns a newXrSoundObjectConfigBDinstance allocated withmemCalloc.static XrSoundObjectConfigBD.Buffercalloc(int capacity) Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withmemCalloc.static XrSoundObjectConfigBD.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSoundObjectConfigBD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSoundObjectConfigBDcalloc(MemoryStack stack) Returns a newXrSoundObjectConfigBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSoundObjectConfigBDcreate()Returns a newXrSoundObjectConfigBDinstance allocated withBufferUtils.static XrSoundObjectConfigBD.Buffercreate(int capacity) Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withBufferUtils.static XrSoundObjectConfigBDcreate(long address) Returns a newXrSoundObjectConfigBDinstance for the specified memory address.static XrSoundObjectConfigBD.Buffercreate(long address, int capacity) Create aXrSoundObjectConfigBD.Bufferinstance at the specified memory.static @Nullable XrSoundObjectConfigBDcreateSafe(long address) static @Nullable XrSoundObjectConfigBD.BuffercreateSafe(long address, int capacity) Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto thedirectSoundAttenuationfield.booleanenabled()enabled(boolean value) Sets the specified value to theenabledfield.booleanenableDoppler(boolean value) Sets the specified value to theenableDopplerfield.Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto theindirectSoundAttenuationfield.floatmainVolume(float value) Sets the specified value to themainVolumefield.static XrSoundObjectConfigBDmalloc()Returns a newXrSoundObjectConfigBDinstance allocated withmemAlloc.static XrSoundObjectConfigBD.Buffermalloc(int capacity) Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withmemAlloc.static XrSoundObjectConfigBD.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSoundObjectConfigBD.Bufferinstance allocated on the specifiedMemoryStack.static XrSoundObjectConfigBDmalloc(MemoryStack stack) Returns a newXrSoundObjectConfigBDinstance allocated on the specifiedMemoryStack.static longnbaseSpace(long struct) Unsafe version ofbaseSpace().static voidnbaseSpace(long struct, XrSpace value) Unsafe version ofbaseSpace.ndirectSoundAttenuation(long struct) Unsafe version ofdirectSoundAttenuation().static voidndirectSoundAttenuation(long struct, XrSoundObjectDistanceAttenuationBD value) Unsafe version ofdirectSoundAttenuation.static intnenabled(long struct) Unsafe version ofenabled().static voidnenabled(long struct, int value) Unsafe version ofenabled.static intnenableDoppler(long struct) Unsafe version ofenableDoppler().static voidnenableDoppler(long struct, int value) Unsafe version ofenableDoppler.longnext()next(long value) Sets the specified value to thenextfield.Prepends the specifiedXrSoundObjectDirectivityCardioidBDvalue to thenextchain.next(XrSoundObjectShapeSphereBD value) Prepends the specifiedXrSoundObjectShapeSphereBDvalue to thenextchain.nindirectSoundAttenuation(long struct) Unsafe version ofindirectSoundAttenuation().static voidnindirectSoundAttenuation(long struct, XrSoundObjectDistanceAttenuationBD value) Unsafe version ofindirectSoundAttenuation.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 XrPosefnpose(long struct) Unsafe version ofpose().static voidUnsafe version ofpose.static floatnreflectionGain(long struct) Unsafe version ofreflectionGain().static voidnreflectionGain(long struct, float value) Unsafe version ofreflectionGain.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.pose()Passes theposefield to the specifiedConsumer.Copies the specifiedXrPosefto theposefield.floatreflectionGain(float value) Sets the specified value to thereflectionGainfield.set(int type, long next, boolean enabled, XrPosef pose, XrSpace baseSpace, float mainVolume, float reflectionGain, boolean enableDoppler, XrSoundObjectDistanceAttenuationBD directSoundAttenuation, XrSoundObjectDistanceAttenuationBD indirectSoundAttenuation) Initializes this struct with the specified values.set(XrSoundObjectConfigBD 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_OBJECT_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. -
POSE
public static final int POSEThe struct member offsets. -
BASESPACE
public static final int BASESPACEThe struct member offsets. -
MAINVOLUME
public static final int MAINVOLUMEThe struct member offsets. -
REFLECTIONGAIN
public static final int REFLECTIONGAINThe struct member offsets. -
ENABLEDOPPLER
public static final int ENABLEDOPPLERThe struct member offsets. -
DIRECTSOUNDATTENUATION
public static final int DIRECTSOUNDATTENUATIONThe struct member offsets. -
INDIRECTSOUNDATTENUATION
public static final int INDIRECTSOUNDATTENUATIONThe struct member offsets.
-
-
Constructor Details
-
XrSoundObjectConfigBD
Creates aXrSoundObjectConfigBDinstance 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<XrSoundObjectConfigBD>
-
type
- Returns:
- the value of the
typefield.
-
next
- Returns:
- the value of the
nextfield.
-
enabled
- Returns:
- the value of the
enabledfield.
-
pose
-
baseSpace
- Returns:
- the value of the
baseSpacefield.
-
mainVolume
public float mainVolume()- Returns:
- the value of the
mainVolumefield.
-
reflectionGain
public float reflectionGain()- Returns:
- the value of the
reflectionGainfield.
-
enableDoppler
- Returns:
- the value of the
enableDopplerfield.
-
directSoundAttenuation
@NativeType("XrSoundObjectDistanceAttenuationBD const *") public XrSoundObjectDistanceAttenuationBD directSoundAttenuation()- Returns:
- a
XrSoundObjectDistanceAttenuationBDview of the struct pointed to by thedirectSoundAttenuationfield.
-
indirectSoundAttenuation
@NativeType("XrSoundObjectDistanceAttenuationBD const *") public XrSoundObjectDistanceAttenuationBD indirectSoundAttenuation()- Returns:
- a
XrSoundObjectDistanceAttenuationBDview of the struct pointed to by theindirectSoundAttenuationfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_SOUND_OBJECT_CONFIG_BDvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
next
Prepends the specifiedXrSoundObjectDirectivityCardioidBDvalue to thenextchain. -
next
Prepends the specifiedXrSoundObjectShapeSphereBDvalue to thenextchain. -
enabled
Sets the specified value to theenabledfield. -
pose
Copies the specifiedXrPosefto theposefield. -
pose
Passes theposefield to the specifiedConsumer. -
baseSpace
Sets the specified value to thebaseSpacefield. -
mainVolume
Sets the specified value to themainVolumefield. -
reflectionGain
Sets the specified value to thereflectionGainfield. -
enableDoppler
Sets the specified value to theenableDopplerfield. -
directSoundAttenuation
public XrSoundObjectConfigBD directSoundAttenuation(@NativeType("XrSoundObjectDistanceAttenuationBD const *") XrSoundObjectDistanceAttenuationBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto thedirectSoundAttenuationfield. -
indirectSoundAttenuation
public XrSoundObjectConfigBD indirectSoundAttenuation(@NativeType("XrSoundObjectDistanceAttenuationBD const *") XrSoundObjectDistanceAttenuationBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto theindirectSoundAttenuationfield. -
set
public XrSoundObjectConfigBD set(int type, long next, boolean enabled, XrPosef pose, XrSpace baseSpace, float mainVolume, float reflectionGain, boolean enableDoppler, XrSoundObjectDistanceAttenuationBD directSoundAttenuation, XrSoundObjectDistanceAttenuationBD indirectSoundAttenuation) 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 newXrSoundObjectConfigBDinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSoundObjectConfigBDinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSoundObjectConfigBDinstance allocated withBufferUtils. -
create
Returns a newXrSoundObjectConfigBDinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSoundObjectConfigBD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSoundObjectConfigBD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSoundObjectConfigBDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSoundObjectConfigBDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSoundObjectConfigBD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSoundObjectConfigBD.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(). -
npose
-
nbaseSpace
public static long nbaseSpace(long struct) Unsafe version ofbaseSpace(). -
nmainVolume
public static float nmainVolume(long struct) Unsafe version ofmainVolume(). -
nreflectionGain
public static float nreflectionGain(long struct) Unsafe version ofreflectionGain(). -
nenableDoppler
public static int nenableDoppler(long struct) Unsafe version ofenableDoppler(). -
ndirectSoundAttenuation
Unsafe version ofdirectSoundAttenuation(). -
nindirectSoundAttenuation
Unsafe version ofindirectSoundAttenuation(). -
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. -
npose
-
nbaseSpace
-
nmainVolume
public static void nmainVolume(long struct, float value) Unsafe version ofmainVolume. -
nreflectionGain
public static void nreflectionGain(long struct, float value) Unsafe version ofreflectionGain. -
nenableDoppler
public static void nenableDoppler(long struct, int value) Unsafe version ofenableDoppler. -
ndirectSoundAttenuation
Unsafe version ofdirectSoundAttenuation. -
nindirectSoundAttenuation
Unsafe version ofindirectSoundAttenuation. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-