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 /
  • Help Room /
avatar image
0
Question by BonyYousuf · Dec 18, 2016 at 10:00 AM · audiosoundhierarchy

How to handle simultaneous sound with Unity 5 Audio

H Alli, Unity creates an issue with sounds amplitude whenever the same clip is played several time at once. It makes it very loud and distorted. For example if multiple players are using the same gun, firing all of them at once would totally destroy the sound. There are several technique you could use such as ensuring not to play same clip at once and/on decrease the sound manually. All of which are nothing but dirty hack to remove this very common issue. However I was wondering if there was a simpler way to tackle this with Unity 5's new audio system.

If anyone knows anything, please do share your method. Thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Fluffy_Kaeloky · Dec 18, 2016 at 10:38 AM

Well, it seems normal to me that the same sound played multple time at the same time would be distorded, if only by the slight imprecision of each players.

As for correcting this issue, I would use a Singleton managing the Audio. The AudioManager would use audio GameObjects from a pool, once you reached your maximum SFX currently playing, or the same SFX, just ignore the request.

It is actually an issue with a lot of games (In a lot of games, if too much SFX sounds are playing, the others would just be ignored), not only Unity, it is also the jobs of designers to avoid that sort of problems.

Comment
Add comment · Show 2 · 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 BonyYousuf · Dec 18, 2016 at 11:13 AM 0
Share

That is exactly I do and I've already mentioned this. I was hoping to know if there was some new way to tackle this with Unity 5's new audio mixer.

avatar image Fluffy_Kaeloky BonyYousuf · Dec 18, 2016 at 11:15 AM 0
Share

Not that I know of, I'm no expert in audio tho. I'm also not exactly sure if it actually is a problem, I think the distortion actually is normal behaviour, did you try listening to a lot of same sounds in an audio proof room ? I can't say I did, but trying to play the same sound slightly at the same time in Audacity would feel distorded.

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

95 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

Related Questions

FMOD not showing up in Monodevelop (C#) 1 Answer

What is the best way to integrate sound/sound effects and Narration? 0 Answers

Soundarray for player is not working properly 1 Answer

How I can get the audio level in dB (via script) ? 0 Answers

Audio Cutting Out Unexplainably 1 Answer


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