OVR_CAPI_Audio.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /********************************************************************************//**
  2. \file OVR_CAPI_Audio.h
  3. \brief CAPI audio functions.
  4. \copyright Copyright 2015 Oculus VR, LLC. All Rights reserved.
  5. ************************************************************************************/
  6. #ifndef OVR_CAPI_Audio_h
  7. #define OVR_CAPI_Audio_h
  8. #include "OVR_CAPI.h"
  9. #include <Windows.h>
  10. #define OVR_AUDIO_MAX_DEVICE_STR_SIZE 128
  11. /// Gets the ID of the preferred VR audio device.
  12. ///
  13. /// Multiple calls to ovr_CreateSwapTextureSetD3D11 for the same ovrHmd is supported, but applications
  14. /// cannot rely on switching between ovrSwapTextureSets at runtime without a performance penalty.
  15. ///
  16. /// \param[out] deviceOutId The ID of the user's preferred VR audio device to use, which will be valid upon a successful return value, else it will be NULL.
  17. ///
  18. /// \return Returns an ovrResult indicating success or failure. In the case of failure, use
  19. /// ovr_GetLastErrorInfo to get more information.
  20. ///
  21. OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetAudioDeviceOutWaveId(UINT* deviceOutId);
  22. /// Gets the GUID of the preferred VR audio device as a string.
  23. ///
  24. /// \param[out] deviceOutStrBuffer A buffer where the GUID string for the device will copied to.
  25. ///
  26. /// \return Returns an ovrResult indicating success or failure. In the case of failure, use
  27. /// ovr_GetLastErrorInfo to get more information.
  28. ///
  29. OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetAudioDeviceOutGuidStr(WCHAR deviceOutStrBuffer[OVR_AUDIO_MAX_DEVICE_STR_SIZE]);
  30. /// Gets the GUID of the preferred VR audio device.
  31. ///
  32. /// \param[out] deviceOutGuid The GUID of the user's preferred VR audio device to use, which will be valid upon a successful return value, else it will be NULL.
  33. ///
  34. /// \return Returns an ovrResult indicating success or failure. In the case of failure, use
  35. /// ovr_GetLastErrorInfo to get more information.
  36. ///
  37. OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetAudioDeviceOutGuid(GUID* deviceOutGuid);
  38. #endif // OVR_CAPI_Audio_h