Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by basklein_ · Apr 23, 2017 at 12:26 PM · erroreditoraudioexecutablemute

All Unity-related audio stopped working

I'm not sure what exactly happened. I tried to change the audio mixer during runtime, but suddenly all the Unity audio cut out. Now all of the Unity audio in all of my projects has stopped working. If I build into .exe's the sound still doesn't work.

When I quit play mode, there is a sudden burst of sound, so I'm sure the game isn't muted or anything like that.

This error was triggered in Unity 5.5.0f3 Personal. I'm currently using Unity 5.6.0f3 Personal, I updated to 5.6.0f3 after this error happened.

I already reinstalled Unity but nothing seems to work.

I've sent the project to a colleague to test, but it works fine on their system.

Has anyone had this problem before?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image basklein_ · Apr 24, 2017 at 09:03 AM 0
Share

Update: There is also small sound burst whenever I interact with the audio mixer.

avatar image Joe-Censored · Apr 24, 2017 at 09:16 PM 0
Share

Check what your operating system's mixer settings are for Unity and your Unity created applications.

avatar image basklein_ Joe-Censored · Apr 25, 2017 at 12:43 PM 0
Share

No, that was the first thing I checked, those are set up fine. I also know it's set up fine for sure now, because:

Update: After I created a whole new project the effect on other projects seemed to go away, not sure how or why though. It now appears to be unrelated to the mixer? Audio in new scenes also works fine and the script I use for audio settings also works fine in new scenes. It's probably a script that messes with audio settings going haywire. I'll give an update once I figure it out.

avatar image samkidd · Apr 28, 2017 at 05:51 AM 0
Share

Did you find a solution? I'm currently experiencing this as well, though I'm also using the S$$anonymous$$m Audio Library.

Earlier I got this bug and it randomly fixed itself.

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by basklein_ · Apr 28, 2017 at 05:01 PM

It seems as if the script execution order randomly changed so that an old line of code the main programmer on our team forgot about started executing.

The line had a reference to AudioListener.Volume, which appears to be the cause of the problem. After removing that line, everything works fine.

Still not sure how it affected other projects...

Comment
Add comment · Show 8 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image samkidd · Apr 28, 2017 at 05:10 PM 1
Share

So what was the old line doing that broke the audio? Also, how were you able to deter$$anonymous$$e the script execution order?

This info would be super helpful as we're trying to fix the same problem and we don't want to have to rollback our project!

avatar image basklein_ samkidd · Apr 28, 2017 at 08:21 PM 1
Share

It was literally just a line that said AudioListener.Volume = 1; (Yes, AudioListener). I didn't personally figure out it was related to the script execution order, but according to my programmer, that was it.

Was your problem triggered by a similar situation as $$anonymous$$e?

We also have locally saved incremental back-ups for pretty much every day we work on the project, that's how we figured out how to fix it.

avatar image epenning basklein_ · Apr 28, 2017 at 10:34 PM 2
Share

I'm on the same $$anonymous$$m as @samkidd , I just tried removing any references to AudioListener.Volume and it actually fixed our problem, thank you so much!

We've been using Unity Collaborate but for some reason it would error out every time we tried to revert back to a time before this bug, so we were having a tough time figuring out the issue.

Show more comments
avatar image AwesomeBird · Jan 28, 2019 at 11:56 PM 0
Share

@Galiderath can you plz give me a full tutorial on how to fix this. this has really stopped all my game creations at the moment cause all my builds and projects got effected by this. It would be really appreciated because I can start making games again.

avatar image basklein_ AwesomeBird · Jan 29, 2019 at 12:10 AM 1
Share

Well, as I said in my answer, I just removed all references to AudioListener.Volume from my code, restarted Unity, pressed play, and then it just worked again.

This issue popped up for me almost 2 years ago now, so I'm not sure if anything has changed since then. It might be a different issue if you're working in the latest version of Unity.

Also, make sure that you don't accidentally have Unity muted in the volume mixer of your computer.

avatar image AwesomeBird basklein_ · Jan 29, 2019 at 09:21 PM 0
Share

Thx. But can you tell me how to find it and which script it is in.

Show more comments
avatar image
0

Answer by MaartenB · Apr 24, 2017 at 07:49 AM

Are you sure that you have an AudioListener in your scene and if so, is it enabled?

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image basklein_ · Apr 24, 2017 at 09:02 AM 0
Share

Yes, because without alterations, the project produces sound just fine on another system.

And the sound burst when I exit play mode also shouldn't be possible then.

avatar image MaartenB basklein_ · Apr 24, 2017 at 11:33 PM 0
Share

Are you using a plugin for your audio?

avatar image basklein_ MaartenB · Apr 25, 2017 at 12:47 PM 1
Share

No, but after some more testing it appears to be another script going haywire, but the scripts I actually use to alter the audio work fine in new scenes. And totally new audiosources unaffected by those scripts also stop working when put in the original scenes. I'm going to test my suspect scripts in a new project and try to isolate the cause.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

110 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Editor Console window message no longer wraps... Help? Please? 1 Answer

Unable to create a Unity Project with HDRP. 0 Answers

I get errors when I start any project 0 Answers

How to display a message to the user when they click on the .exe file 0 Answers

How to fix: !CreateDirectoryRecursive(fullpath) 6 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges