C Specification
The xrSubmitSoundObjectBufferBD function is defined as:
// Provided by XR_BD_spatial_audio_rendering
XrResult xrSubmitSoundObjectBufferBD(
XrSoundObjectBD soundObject,
const XrAudioBufferBD* buffer);
Parameters
Description
This function submits an audio buffer to a sound object XrSoundObjectBD. The corresponding function for a sound field XrSoundFieldBD is xrSubmitSoundFieldBufferBD.
This function must only be called during an audio period, which is the time
period after a successful, not timed out call to xrWaitAudioPeriodBD
and before a successful call to xrEndAudioPeriodBD, otherwise the
runtime must return XR_ERROR_CALL_ORDER_INVALID.
For each sound object, this function must not be called more than once per
audio period, otherwise the runtime must return
XR_ERROR_CALL_ORDER_INVALID.
The buffer must
-
Have XrAudioBufferBD::
bufferChannelsset to 1. -
Have an XrAudioBufferBD::
bufferLengthequal to the XrSpatialAudioRendererCreateInfoBD::framesPerBufferspecified when creating the spatial audio renderer with xrCreateSpatialAudioRendererBD.
If any of the above conditions are not met, the runtime must return
XR_ERROR_VALIDATION_FAILURE.
When valid audio is submitted, the runtime must correctly process and render the spatial audio.
Applications must not call this function concurrently with xrWaitAudioPeriodBD or xrEndAudioPeriodBD. Doing so may result in undefined behavior.
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.