- Home /
One sound gets quieter when other is played?
I have 2 audio sources that are equal distance from a listener. One plays the BG music on a loop and the other plays sound effects. Whenever I play a sound effect, the BG music quiets down until the sound effect is played. Is there some way to prevent this?
Are you sure the volume of the music is actually being decreased (watch the volume in the inspector whilst the sound effect plays). It may just be audio interference when the sound effect plays that makes the music sound quieter. If its actually having the volume value altered, then I'm unsure what would cause that.
@HenryStrattonFW - to go off of your point, theres also the "Priority" part, that deter$$anonymous$$es the lower the value, the more importance over another audio clip playing at the same time, it takes. So also make sure those match. At the same time, it could also be a Spectrum thing, where one sound is playing as a 3D sound, so within a radius, and naturally becomes quieter as another sound enters that 3D sound as well.
One thing you could do, if all else fails, is just increase the backgrounds audio Priority to a lower value than your sound effect, so that it will appear as if the background never quiets down, if anything, gets a little bit louder. At that point its a matter of finding the perfect Priority value when a sound effect plays. Or the alternative, increase the Priority value on your audio for sound effects, so it plays at a less importance then your background music.
Good point, I had not considered the priority values.
Could be lots of things, deliberate ducking, limiting compression on the summed signal of both, phase cancellation. etc.
Without more information it's hard to tell.
Answer by StellarVeil · Aug 21, 2019 at 06:09 PM
In case other ppl run into this problem in the future I'll link to a possible fix I wrote in another post to avoid duplication: https://forum.unity.com/threads/ambient-sound-getting-quieter-when-other-sounds-playing.386595/#post-4881551