| 257 | } |
| 258 | |
| 259 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetAudioDeviceOutGuidStr(WCHAR deviceOutStrBuffer[OVR_AUDIO_MAX_DEVICE_STR_SIZE]) |
| 260 | { |
| 261 | REV_TRACE(ovr_GetAudioDeviceOutGuidStr); |
| 262 | |
| 263 | if (!deviceOutStrBuffer) |
| 264 | return ovrError_InvalidParameter; |
| 265 | |
| 266 | if (Runtime::Get().AudioDevice) |
| 267 | { |
| 268 | XR_FUNCTION(g_Instance, GetAudioOutputDeviceGuidOculus); |
| 269 | XrResult result = GetAudioOutputDeviceGuidOculus(g_Instance, deviceOutStrBuffer); |
| 270 | return XR_SUCCEEDED(result) ? ovrSuccess : ovrError_AudioOutputDeviceNotFound; |
| 271 | } |
| 272 | |
| 273 | HRESULT com = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); |
| 274 | ovrResult result = GetDefaultAudioEndpoint(eRender, deviceOutStrBuffer); |
| 275 | if (SUCCEEDED(com)) |
| 276 | CoUninitialize(); |
| 277 | return result; |
| 278 | } |
| 279 | |
| 280 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetAudioDeviceOutGuid(GUID* deviceOutGuid) |
| 281 | { |
nothing calls this directly
no test coverage detected