C Specification

The XrSoundObjectDistanceAttenuationCurveBD structure is defined as:

// Provided by XR_BD_spatial_audio_rendering
typedef struct XrSoundObjectDistanceAttenuationCurveBD {
    XrStructureType               type;
    const void*                   next;
    uint32_t                      curvePointCount;
    XrAttenuationCurvePointBD*    curvePoints;
} XrSoundObjectDistanceAttenuationCurveBD;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain.

  • curvePointCount is the number of points in the curve.

  • curvePoints is a pointer to an array of XrAttenuationCurvePointBD.

Description

If the propagation distance falls between two points in the curve, the runtime must calculate attenuation by linear interpolation.

If the propagation distance is less than the first point in the curve, the runtime must use the attenuation of the first point.

If the propagation distance is greater than the last point in the curve, the runtime must use the attenuation of the last point.

Valid Usage (Implicit)

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 2014-2026 The Khronos Group Inc.