Search Unity

Multiple Audio Listeners in Unity 5

Discussion in 'Audio & Video' started by Vectrex, Sep 25, 2014.

  1. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    I'm assuming they were just using one of those assets that simulates multiple audio listeners. Unity doesn't have anything built-in for multiple audio listeners yet as far as I know. I've tested having two audio listeners in 5.5.0f1 and nothing has changed.
     
  2. orionburcham

    orionburcham

    Joined:
    Jan 31, 2010
    Posts:
    488
    I have a sneaking suspicion CausticLasagne's console is filled with warnings about this too. I think he's just recommending that we ignore them.

    Folks, don't ignore those warning messages. Bad idea. Treat them like errors that Unity can gracefully deal with in the editor. No guarantee they'll still work in published builds, on any platforms. :p
     
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Ignoring warnings is allowable in some circumstances. If the engine auto blended both audio streams, I would even say go for it.

    But since their is no blending the warning is real. You can test the no blending by putting a couple of audio sources and listeners a couple thousand units apart. If the sound is properly 3D, you won't here both sounds.
     
  4. GibTreaty

    GibTreaty

    Joined:
    Aug 25, 2010
    Posts:
    792
    The sound will only work with whichever Audio Listener was enabled last.
     
    orionburcham and Kiwasi like this.