Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class FBHapticPcm

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

The XR_FB_haptic_pcm extension.

This extension enables applications to trigger haptic effects using Pulse Code Modulation (PCM) buffers.

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
XR_FB_haptic_pcm_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int
public static final int
XR_TYPE_HAPTIC_PCM_VIBRATION_FB

Extends XrStructureType.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate)

Unsafe version of: GetDeviceSampleRateFB

public static int
xrGetDeviceSampleRateFB(XrSession
the specified XrSession.
session
,
XrHapticActionInfo
the XrHapticActionInfo used to provide action and subaction paths
hapticActionInfo
,
XrDevicePcmSampleRateGetInfoFB
a pointer to XrDevicePcmSampleRateStateFB which is populated by the runtime.
deviceSampleRate
)

Get device sample rate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_FB_HAPTIC_PCM_EXTENSION_NAMEback to summary
public static final String XR_FB_HAPTIC_PCM_EXTENSION_NAME

The extension name.

XR_FB_haptic_pcm_SPEC_VERSIONback to summary
public static final int XR_FB_haptic_pcm_SPEC_VERSION

The extension specification version.

XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FBback to summary
public static final int XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FB

API Constants

XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FBback to summary
public static final int XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB

Extends XrStructureType.

Enum values:
XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FBback to summary
public static final int XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB

Extends XrStructureType.

Enum values:
XR_TYPE_HAPTIC_PCM_VIBRATION_FBback to summary
public static final int XR_TYPE_HAPTIC_PCM_VIBRATION_FB

Extends XrStructureType.

Enum values:

Constructor Detail

FBHapticPcmback to summary
protected FBHapticPcm()

Method Detail

nxrGetDeviceSampleRateFBback to summary
public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate)

Unsafe version of: GetDeviceSampleRateFB

xrGetDeviceSampleRateFBback to summary
public static int xrGetDeviceSampleRateFB(XrSession session, XrHapticActionInfo hapticActionInfo, XrDevicePcmSampleRateGetInfoFB deviceSampleRate)

Get device sample rate.

C Specification

XrResult xrGetDeviceSampleRateFB(
    XrSession                                   session,
    const XrHapticActionInfo*                   hapticActionInfo,
    XrDevicePcmSampleRateGetInfoFB*             deviceSampleRate);
Description

The runtime must use the hapticActionInfo to get the sample rate of the currently bound device on which haptics is triggered and populate the deviceSampleRate structure. The device is determined by the action and subaction of XrHapticActionInfo. If the hapticActionInfo is bound to more than one device, then runtime should assume that the all these bound devices have the same deviceSampleRate and the runtime should return the sampleRate for any of those bound devices. If the device is invalid, the runtime must populate the sampleRate of XrDevicePcmSampleRateStateFB as 0. A device can be invalid if the runtime does not find any device (which can play haptics) connected to the headset, or if the device does not support PCM haptic effect.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrDevicePcmSampleRateGetInfoFB, XrDevicePcmSampleRateStateFB, XrHapticActionInfo

Parameters
session:XrSession

the specified XrSession.

hapticActionInfo:XrHapticActionInfo

the XrHapticActionInfo used to provide action and subaction paths

deviceSampleRate:XrDevicePcmSampleRateGetInfoFB

a pointer to XrDevicePcmSampleRateStateFB which is populated by the runtime.

Annotations
@NativeType:XrResult