Search Unity

Audio Sound not routing through AudioMixer

Discussion in 'Audio & Video' started by Deleted User, Jan 2, 2018.

  1. Deleted User

    Deleted User

    Guest

    I have a GameObject with an AudioSource. In the Output field I dragged my SFX AudioMixer group but when I start the game, all sounds from the GameObject are played at regular volume level. When I go to the AudioMixer, the bars are not moving as in nothing is getting routed through it. Also, next to the AudioMixer, under the Mixers submenu, it says AudioMixer (AudioListener) - Inactive
    I have an AudioListener in my scene.

    I am calling audioSource.PlayOneShot() to play my sound.

    Am I missing something?
     
  2. Hikiko66

    Hikiko66

    Joined:
    May 5, 2013
    Posts:
    1,304
    What happens when you use Play and not PlayOneShot?
     
  3. Deleted User

    Deleted User

    Guest

    Doesn't change anything.
     
  4. Deleted User

    Deleted User

    Guest

  5. Deleted User

    Deleted User

    Guest

  6. Deleted User

    Deleted User

    Guest

  7. oxcamel

    oxcamel

    Joined:
    Feb 16, 2018
    Posts:
    1
    Hey, I had the same problem. I solved it by:

    1. Make sure you have an audio listener component on your camera or somewhere in the scene.
    2. Click on the Audio Mixer so that it shows up in the inspector then uncheck "Auto Mixer Suspend"

    That solved it for me, but I'm not really sure why though. Hopefully it works for you too
     
    socialtrens and ch2014 like this.
  8. shyxiaolong

    shyxiaolong

    Joined:
    Jan 14, 2021
    Posts:
    9
    fix this => found Audio Source what are playing sound and set Output to your Mixer