Class XrSoundObjectConfigBD.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<XrSoundObjectConfigBD.Buffer>
org.lwjgl.system.StructBuffer<XrSoundObjectConfigBD, XrSoundObjectConfigBD.Buffer>
org.lwjgl.openxr.XrSoundObjectConfigBD.Buffer
- All Implemented Interfaces:
AutoCloseable, Iterable<XrSoundObjectConfigBD>, NativeResource, Pointer
- Enclosing class:
XrSoundObjectConfigBD
public static class XrSoundObjectConfigBD.Buffer
extends StructBuffer<XrSoundObjectConfigBD, XrSoundObjectConfigBD.Buffer>
implements NativeResource
An array of
XrSoundObjectConfigBD structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newXrSoundObjectConfigBD.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionlongSets the specified value to thebaseSpacefield.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.longnext()next(long value) Sets the specified value to thenextfield.Prepends the specifiedXrSoundObjectDirectivityCardioidBDvalue to thenextchain.next(XrSoundObjectShapeSphereBD value) Prepends the specifiedXrSoundObjectShapeSphereBDvalue to thenextchain.pose()Passes theposefield to the specifiedConsumer.Copies the specifiedXrPosefto theposefield.floatreflectionGain(float value) Sets the specified value to thereflectionGainfield.inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_SOUND_OBJECT_CONFIG_BDvalue to thetypefield.Methods inherited from class StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class Pointer.Default
equals, hashCodeMethods inherited from interface NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newXrSoundObjectConfigBD.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
XrSoundObjectConfigBD.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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.Buffer directSoundAttenuation(@NativeType("XrSoundObjectDistanceAttenuationBD const *") XrSoundObjectDistanceAttenuationBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto thedirectSoundAttenuationfield. -
indirectSoundAttenuation
public XrSoundObjectConfigBD.Buffer indirectSoundAttenuation(@NativeType("XrSoundObjectDistanceAttenuationBD const *") XrSoundObjectDistanceAttenuationBD value) Sets the address of the specifiedXrSoundObjectDistanceAttenuationBDto theindirectSoundAttenuationfield.
-