Search Unity

Not getting any sound in VR

Discussion in 'AR/VR (XR) Discussion' started by poulskrae, Feb 19, 2020.

  1. poulskrae

    poulskrae

    Joined:
    Aug 10, 2018
    Posts:
    8
    This might be a beginners question, but I have no clue what to do :(

    No matter what I try, I can't get any audio in my project VR projekt. I downloaded the new XR Interactino Toolkit and the Interaction systems and everything is working fine except getting the audio to work.

    Is there some special trick that I don't know about? I'm using Unity Build 2019.3.1f1 and an Oculus Rift S headset.

    I've watched some videos about downloading the OculusSpartializer and adding this in the Project settings under audio. But still nothing happens when I try this method.

    I've added the Audio Listener component to the Main Camera in the XR RIG and added an Audio Source close to the XR Rig with an audioclip.

    Do I need to do something different, when working in VR? o_O
     
    YanaArtis likes this.
  2. poulskrae

    poulskrae

    Joined:
    Aug 10, 2018
    Posts:
    8
    Sometimes it helps to write down the problem :D

    Apparently the sound file was broken. There was no problem playing the wav file in VLC, but when I tried to open the file in Audacity it contained 3 tracks. A left, a right and a mono track - all in 48000Hz. I just deleted the mono track and exported is as an mp3 instread. Then everything worked flawless.

    Note to self - try different audio files next time....