Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 frogsbo · Jan 29, 2014 at 05:09 AM · audioaudio clipping

Controlling audio clipping and distortion on multiple added sounds

when you play many sounds in unity, the volume adds beyond the dynamic range of the sound card, i.e., one, i.e., 0 dB.

in audio theory, you control excess volume of added sounds by dynamically multiplying the sound volumes, or using an audio limiter, etc.

What is the standard way in unity to control adding too many sounds and keeping sound level normalised?( normalised means at normal levels around 1, not too loud and not to faint).

Comment
Add comment · Show 2
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 frogsbo · Jan 29, 2014 at 05:11 AM 0
Share

audio clipping existed already as a tag, but there are 0 questions related to audio clipping! only audio clips, Bizarre! clipping is a technical digital signal processing term for audio level excess.

avatar image Kusako2 · Feb 06, 2014 at 08:18 PM 0
Share

Did you find any solution to this. I'm having the same problem. As soon al two clips play at the same time, they start to clip.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by frogsbo · Feb 07, 2014 at 02:45 PM

If the sounds.wav are normalized at 1, it means your audio file has max 1 volume, when you play 2 of them you have to change the volume to equals 0.5 on each one, otherwise total volume can go to 2, half of it is above speaker/soundcard level.

so if you play 10 of them roughly in the same time frame, make a small code that counts the number of ones being played at the same time, and devide by that number, with a smoothing function if necessary so that sound isnt cut faster than 20-30ms. 10 sounds, devide each by 10. because they are not exactly at the same time, but probably in steps, you can play around with that figure, perhaps multiply each by 1.5-1.6 or some value after, until you find the right sound level for you game.

the same sounds has exactly the same frequencies, especially if it is a non organic sound, and it will go higher than 1 level alot faster than adding for example a bass sound and a high sound.

Comment
Add comment · Show 1 · 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 frogsbo · Feb 07, 2014 at 02:51 PM 0
Share

imagine this graph is between zero and one, it is your sound:

           /\/\/\/\/\/\/\/\/\/\

when you add 10, the result graph can have moments that equals 10, and the sound card is made for 1 level (1.12 sometimes)

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

20 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

Related Questions

Find all Objects/Scripts that access a given audio!! 1 Answer

Play audio clip on more than one object from another gameobject 2 Answers

Audio Clip Getting Cut Short 1 Answer

Truncate audio runtime 0 Answers

Previous audio clipped if called again 0 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