Search Unity

Audio Still hear audio source without audio listener or when audio listener is disabled

Discussion in 'Audio & Video' started by Stereojunk, Dec 12, 2018.

  1. Stereojunk

    Stereojunk

    Joined:
    Dec 12, 2018
    Posts:
    1
    Hi guys,

    I am very new to Unity and I have been playing a bit with features.

    I have one specific problem that is the following:

    I have applied audio sources to 2 different assets and I have an audio listener placed on the main camera.
    Normally, if I disabled the audio listener, I should not be hearing the audio sources even though it is still present.

    However, I still do hear these sources no matter what I do with the audio listener. I have tried to disable it, to remove it, nothing changes.

    Does anyone has an idea why Unity is acting like this?

    Thanks for your help.
     
  2. JuozasK

    JuozasK

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    84
    Hey!
    If you create a new scene, add an audio source and disable the audio listener, does this still happen?
     
  3. deLord

    deLord

    Joined:
    Oct 11, 2014
    Posts:
    306
    Seems to be a bug that was fixed for 2019.1
    https://issuetracker.unity3d.com/is...-when-there-is-no-audio-listener-in-the-scene

    Although I am asking myself: what is 2019.1 when there is only 2018.3.4 for download right now??
    I use 2018.3.3f1 atm and I still have this bug
    Wtf, I dont get it. I can even open Unity 5.0.2p4, add an Audio Source that is 600 units away from the main camera and I still hear the sound for 100%.
     
    Last edited: Feb 6, 2019
  4. Sam-Sproutel

    Sam-Sproutel

    Joined:
    Jun 4, 2018
    Posts:
    5
    @WashingMachine
    Seeing this in 2018.3.6f1

    Created a new scene, removed the default audiolistener applied to the main camera, and added an audioclip to it. We can still hear the clip looping
     
  5. flyingaudio

    flyingaudio

    Joined:
    Dec 3, 2010
    Posts:
    98
    This is happening in 2018.3.14
     
  6. XSpitFire

    XSpitFire

    Joined:
    Jan 22, 2018
    Posts:
    15
    Same Issue here
     
  7. scarletsnake

    scarletsnake

    Joined:
    Nov 27, 2009
    Posts:
    106
    Yep, same here... By the way Stereojunk, cool username :cool:
     
  8. AndreasO

    AndreasO

    Joined:
    Sep 25, 2012
    Posts:
    90
    What's the status of this issue? This is clearly a bug and it drives me nuts.
     
  9. JuozasK

    JuozasK

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    84
    @samSproutel
    Is this still reproducible on something like 2019.1.10f1? (Or any 2019.1 release?)
    Asking because of the bug that was posted with a fix for 2019.1
     
  10. Sam-Sproutel

    Sam-Sproutel

    Joined:
    Jun 4, 2018
    Posts:
    5
    I can confirm this is fixed in 2019.1.4f1!
     
  11. MisterSkitz

    MisterSkitz

    Joined:
    Sep 2, 2015
    Posts:
    833
    I'm using 2018.3.9f1 and the issue is present. I tried 2019 alpha and Beta and did not like those versions. Has 2019 made an OFFICIAL release yet?
     
  12. Husamettin

    Husamettin

    Joined:
    Oct 1, 2019
    Posts:
    4
    I am using 219.2.16f1 . I can enable or disable audio listener on the main camera via a script. on unity the script is working perfectly. but on android phone its not working.
     
    rahul-Mlympix likes this.
  13. Drago91

    Drago91

    Joined:
    Nov 27, 2020
    Posts:
    1
    Same bug reproduced in 2019.4 version. Sounds played without listener on Ios an android platform, but in editor all ok. You can disable sounds by using AudioListener.volume = 0.0f.
     
  14. concubicycle

    concubicycle

    Joined:
    Jan 18, 2015
    Posts:
    4
    Still seems to be happening in 2020.2.6
     
  15. VirtualPierogi

    VirtualPierogi

    Joined:
    Sep 3, 2012
    Posts:
    54
    Same here it happens in 2020.3.8, disabling listener on main camera works as intended in editor but when deployed to webgl I can suddenly hear everything clearly even without listener on the scene.
     
  16. JuozasK

    JuozasK

    Unity Technologies

    Joined:
    Mar 23, 2017
    Posts:
    84
    Does it happen on latest Unity version? Or Latest LTS at least? Also, if you can provide a repro project, report a bug! It seems like this is something that keeps reappearing
     
  17. bzonca

    bzonca

    Joined:
    Feb 28, 2014
    Posts:
    11
    This seems to be less of a bug and more of a default behavior by unity. I'm in the same situation where having no audio listener in the scene will simply listen for every sound instead of a more intuitive default of hearing no sounds until there is a listener. This is just for a few seconds while the players load in a multiplayer match, but it is quite annoying. The workaround is quite nasty with having to update all the sounds or deal with some temporary listener that shouldn't need to be needed.
     
    Eristen and kknestel like this.
  18. kknestel

    kknestel

    Joined:
    Dec 27, 2020
    Posts:
    1
    I also think this is Unitys way of handeling a scene without a audiolistener.
     
  19. Eristen

    Eristen

    Joined:
    Jun 17, 2021
    Posts:
    19
    Balderdash, for a lack of a more profane word.
     
  20. xxflecsoxx

    xxflecsoxx

    Joined:
    Apr 28, 2020
    Posts:
    12
    Same bug in 2021.3.16f1
     
    Ignacii likes this.
  21. MosyyabKhan

    MosyyabKhan

    Joined:
    Apr 13, 2021
    Posts:
    2
    Same bug in 2020.3.40