C Specification

The XrSoundObjectDistanceAttenuationTypeBD enumeration describes the type of distance attenuation.

// Provided by XR_BD_spatial_audio_rendering
typedef enum XrSoundObjectDistanceAttenuationTypeBD {
    XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_NONE_BD = 0,
    XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_INVERSE_SQUARE_BD = 1,
    XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_ROLLOFF_BD = 2,
    XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_CUSTOMIZED_BD = 100,
    XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_MAX_ENUM_BD = 0x7FFFFFFF
} XrSoundObjectDistanceAttenuationTypeBD;

Description

Enumerant Descriptions
  • XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_NONE_BD  — Indicates that no attenuation is applied when source-listener distance varies.

  • XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_INVERSE_SQUARE_BD  — Indicates that attenuation scales proportional to the inverse-squared distance of source-listener distance.

  • XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_ROLLOFF_BD  — Indicates that attenuation equals pow(distance/refer_distance, -rolloff_factor), in which distance is clamped by minAttenuationRange and maxAttenuationRange.

  • XR_SOUND_OBJECT_DISTANCE_ATTENUATION_TYPE_CUSTOMIZED_BD  — Indicates that the distance attenuation is customized.

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.