C Specification
// Provided by XR_BD_spatial_audio_rendering
typedef struct XrAudioBufferBD {
XrStructureType type;
const void* next;
XrAudioBufferChannelLayoutBD channelLayout;
uint32_t bufferChannels;
uint32_t bufferLength;
float* buffer;
} XrAudioBufferBD;
Members
Description
The audio data in buffer is stored in little-endian byte order.
bufferLength and bufferChannels must be compatible with the
values specified in XrSpatialAudioRendererCreateInfoBD when creating
the renderer.
In particular, the application must set bufferLength to
bufferChannels *
XrSpatialAudioRendererCreateInfoBD::framesPerBuffer, otherwise
the runtime must return XR_ERROR_VALIDATION_FAILURE.
The application must ensure that the audio signal stored in this
XrAudioBufferBD is sampled at a sample rate of
XrSpatialAudioRendererCreateInfoBD::sampleRate.
Supplying data from a mismatched sample rate results in unspecified
behavior, commonly perceived as tempo/pitch shifts and spectral coloration.
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-2026 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.