Search Unity

XR Audio Device id?

Discussion in 'VR' started by eric_funktroniclabs, Jan 8, 2020.

  1. eric_funktroniclabs

    eric_funktroniclabs

    Joined:
    Oct 4, 2018
    Posts:
    19
    Is there a way, in the XR API, to get the audio device GUID for the HMD?

    For example, Oculus allows the user to pick whether they want to push audio through the HMD or the windows target audio device. If we are using an audio middleware, like FMOD, it needs to know which device to target.

    Is there a way to get this through any unity API?
     
  2. Time-Jockey

    Time-Jockey

    Joined:
    Oct 11, 2012
    Posts:
    14
    I'm having the same issue - no idea how to get the device GUID for the HMD
     
  3. DjOxvr

    DjOxvr

    Joined:
    Dec 3, 2019
    Posts:
    4
    We've encountered the same issue, with no obvious resolution yet.

    When playing audio using audio middleware in the Editor itself, the audio comes through the windows speakers. We desire the audio to come through the HMD itself.
    Previously this was done using
    Code (CSharp):
    1. OVRManager.audioOutId
    And assigning that to the middle ware as output target.

    Is there an equivalent in the XR framework? (Unity 2019 LTS)