Package org.lwjgl.openxr
Class OCULUSAudioDeviceGuid
java.lang.Object
org.lwjgl.openxr.OCULUSAudioDeviceGuid
The XR_OCULUS_audio_device_guid extension.
This extension enables the querying of audio device information associated with an OpenXR instance.
On Windows, there may be multiple audio devices available on the system. This extensions allows applications to query the runtime for the appropriate audio devices for the active HMD.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intXR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUSstatic final StringThe extension name.static final intThe extension specification version. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrGetAudioInputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, long buffer) Unsafe version of:GetAudioInputDeviceGuidOculusstatic intnxrGetAudioOutputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, long buffer) Unsafe version of:GetAudioOutputDeviceGuidOculusstatic intxrGetAudioInputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, ByteBuffer buffer) Query the GUID for the active audio input device.static intxrGetAudioOutputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, ByteBuffer buffer) Query the GUID for the active audio output device.
-
Field Details
-
XR_OCULUS_audio_device_guid_SPEC_VERSION
public static final int XR_OCULUS_audio_device_guid_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME
The extension name.- See Also:
-
XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS
public static final int XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUSXR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS- See Also:
-
-
Method Details
-
nxrGetAudioOutputDeviceGuidOculus
public static int nxrGetAudioOutputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, long buffer) Unsafe version of:GetAudioOutputDeviceGuidOculus -
xrGetAudioOutputDeviceGuidOculus
public static int xrGetAudioOutputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, ByteBuffer buffer) Query the GUID for the active audio output device.C Specification
XrResult xrGetAudioOutputDeviceGuidOculus( XrInstance instance, wchar_t buffer[XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS]);Valid Usage (Implicit)
- The
XR_OCULUS_audio_device_guidextension must be enabled prior to callingGetAudioOutputDeviceGuidOculus instancemust be a validXrInstancehandlebuffermust be a wide character array of lengthMAX_AUDIO_DEVICE_STR_SIZE_OCULUS
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- theXrInstanceto query the audio device state in.buffer- a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.
- The
-
nxrGetAudioInputDeviceGuidOculus
public static int nxrGetAudioInputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, long buffer) Unsafe version of:GetAudioInputDeviceGuidOculus -
xrGetAudioInputDeviceGuidOculus
public static int xrGetAudioInputDeviceGuidOculus(org.lwjgl.openxr.XrInstance instance, ByteBuffer buffer) Query the GUID for the active audio input device.C Specification
XrResult xrGetAudioInputDeviceGuidOculus( XrInstance instance, wchar_t buffer[XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS]);Valid Usage (Implicit)
- The
XR_OCULUS_audio_device_guidextension must be enabled prior to callingGetAudioInputDeviceGuidOculus instancemust be a validXrInstancehandlebuffermust be a wide character array of lengthMAX_AUDIO_DEVICE_STR_SIZE_OCULUS
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- theXrInstanceto query the audio device state in.buffer- a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.
- The
-