- Home /
Creating audio channels for the customer
Hey People,
does anyone have an idea for creating audio channels like "Ambient","Music", "SFX", "interface" for the player? I have no idea, how this could be realized.
I don't want a code, but just an idea.
Regarding, that the volume of every sound is controlled by the setting of the corresponding audio source, I have no idea, how a general volume controller could regulate the volume of multiple sounds....
Cheers
Answer by syclamoth · Jan 13, 2012 at 11:08 AM
Unity doesn't really provide much functionality for this, so you'll really have to do it yourself. I'd register every audiosource with a central 'manager' script, which can adjust all the audio-sources of a given 'type' at the same time.
So, what you'd do is whenever you create a new audioSource, add that to a specific list of sources (Music, Interface, SFX etc.), and adjust its volume so that it reflects the current value for that list.
Your answer
![](https://koobas.hobune.stream/wayback/20220613062937im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Does the number of simultaneous playing audio sources matter? 0 Answers
Output Audio to a 4 channel amp 0 Answers
Adaptive audio/Channel switching 1 Answer
"directionless" sound for 2D game. 1 Answer