- Home /
how to avoid audio increase when 2 identical sounds are played at the same time?
When two enemies fire a projectile at the same time with the same sound attached, the audio from the projectiles becomes louder. I'm looking for a way to make the audio sound as if one projectile was fired. I've seen some recommend halving the audio when 2 identical sounds are played but I am unsure on how to go about doing that or if there is a more obvious way to approach this. So my question is how do I avoid the increase in audio when 2 identical sounds are played at the same time? Thanks in advance for your help.
Answer by Itaros · Oct 28, 2014 at 07:58 PM
This is very complex question. If you have played Sherlock Holmes Crimes& Punishment there was a case where it was a valid assumption that one loud shot was two simultaneous ones.
To the point: You can track all played sound by simple manager script where all sources are registered on start which will equalize volumes of different sounds using simple math: volume = 100% / amountOfConcurrentSounds.
Unity5 brings top-notch industrial-standard mixing framework where you will be able to control maximum possible volume by channel if you need fine-grained control on sound.
I assumed that I would have to make a script to manage the audio but time is constricting me form doing so, oh well. I found another good answer to this question here if anyone's interested.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Triggering multiple audio clips to play in sequence 1 Answer
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Generating a 3D Mesh from Audio data 0 Answers