- Home /
Control the volume of separate audio channels
Hi all,
I'm trying to create an effect that associates two players positions to separate areas of a map. When one player leaves the map their respective audio channel should become more quiet. When both players are off the map both channels should be silent.
The best suggestion I've gotten so far has been to use two audio mixers -- one set for the left and the other for the right -- and control their volumes separately. This should solve the problem but I can't find any documentation explaining how you'd pan an audio mixer in the first place.
Does anyone have ideas for other approaches for solving this problem or documentation on how to pan audio for a mixer? (not a source)
Answer by Aisenhein · Aug 27, 2017 at 01:05 AM
Maybe are you looking for the "Stereo pan" option in the Audio Source?
And you can try to set "Spatial Blend" option to "2D" too if some sound occur outside a listener range, because a 3D sound is automatically blend in the two sides.
Not audio source but audio mixer! I'd like to control a ton of sources at once. I worry I might just have to control them in a list.
Yes I think you need to control each source separately, $$anonymous$$aybe you can use a event delegate to make easy to set then all at the same time and you will not to need a list/foreach to it.
Your answer
Follow this Question
Related Questions
Why is my backtrack's volume getting lower? 0 Answers
[Daydream] Disable default volume menu? 0 Answers
Muting Audio 2 Answers
Any way to change system volume? 2 Answers