C Specification
// Provided by XR_FB_haptic_pcm
XrResult xrGetDeviceSampleRateFB(
XrSession session,
const XrHapticActionInfo* hapticActionInfo,
XrDevicePcmSampleRateGetInfoFB* deviceSampleRate);
Parameters
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 XrHapticActionInfo::action
and
XrHapticActionInfo::subactionPath
.
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
deviceSampleRate
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.
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2024, The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.