Monado OpenXR Runtime
oxr_haptic.c File Reference

Haptic related functions. More...

#include "oxr_haptic.h"
Include dependency graph for oxr_haptic.c:

Macros

#define GET_SAMPLE_RATE(X)
 

Functions

static bool get_action_output_pcm_sample_rate (struct oxr_action_cache *cache, float *sample_rate)
 
XrResult oxr_haptic_get_attachment_pcm_sample_rate (struct oxr_action_attachment *act_attached, const struct oxr_subaction_paths subaction_paths, float *sample_rate)
 Mostly used to implement the XR_FB_haptic_pcm extension. More...
 

Detailed Description

Haptic related functions.

Macro Definition Documentation

◆ GET_SAMPLE_RATE

#define GET_SAMPLE_RATE (   X)
Value:
if (subaction_paths.X || subaction_paths.any) { \
if (get_action_output_pcm_sample_rate(&act_attached->X, sample_rate)) { \
return XR_SUCCESS; \
} \
}

Function Documentation

◆ oxr_haptic_get_attachment_pcm_sample_rate()

XrResult oxr_haptic_get_attachment_pcm_sample_rate ( struct oxr_action_attachment act_attached,
const struct oxr_subaction_paths  subaction_paths,
float *  sample_rate 
)

Mostly used to implement the XR_FB_haptic_pcm extension.

References OXR_FOR_EACH_SUBACTION_PATH.