Class XrHapticAmplitudeEnvelopeVibrationFB

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrHapticAmplitudeEnvelopeVibrationFB>
org.lwjgl.openxr.XrHapticAmplitudeEnvelopeVibrationFB
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrHapticAmplitudeEnvelopeVibrationFB extends org.lwjgl.system.Struct<XrHapticAmplitudeEnvelopeVibrationFB> implements org.lwjgl.system.NativeResource
Haptic Effect Description.
Member Descriptions
  • type is the XrStructureType of this structure.
  • next is NULL or a pointer to the next structure in a structure chain.
  • duration is the duration of the haptic effect in nanoseconds. See duration for more details.
  • amplitudeCount is the number of samples in the buffer.
  • amplitudes is the pointer to a float array that contains the samples.

The runtime should resample the provided samples in the amplitudes, and maintain an internal buffer which should be of MAX_HAPTIC_AMPLITUDE_ENVELOPE_SAMPLES_FB length. The resampling should happen based on the duration, amplitudeCount, and the device’s sample rate.

Valid Usage (Implicit)

Layout


 struct XrHapticAmplitudeEnvelopeVibrationFB {
     XrStructureType type;
     void const * next;
     XrDuration duration;
     uint32_t amplitudeCount;
     float const * amplitudes;
 }