![]() ![]() 10 Audio Sources playing one audio clip each, would still be 10 voices. ![]() multiple voices).įor example an Audio Source playing 10 clips all at once would mean 10 voices playing. A single audio source can play multiple clips (i.e. changing something on the audio source affects all the clips playing through it).Ī voice is a playing audio clip and there's a default limit of 32 at once. It's not the case that Unity creates multiple Audio Sources, it's just one with multiple clips playing through it (i.e. The other play functions interrupt the playing sound.Įvery Audio Clip you play through that Audio Source will use the Audio Source's settings. I wrote a guide on the difference between audio triggers in Unity, and when to use them, on my blog here: Ĭlick to expand.You can play multiple Audio Clips through one Audio Source but only by using Play One Shot. Generally it's best to use Play One Shot for sound effects and other short audio clips and use Play for music and long loops (as Play One Shot can't loop audio) This means you can play two sounds from one Audio Source using Play One Shot at different volumes but turn them both down using the Audio Source volume control if you want. When you call Play One Shot you can choose to add a volume scale parameter, which will be a percentage (between 0 and 1) of the Audio Source's volume. The Audio Source volume will control the level of any sound playing through that audio source. It doesn't require an Audio Clip in the field because you can play multiple sounds from one audio source using Play One Shot, which is why you need to specify the Audio Clip when calling it. ![]() Using Play One Shot plays a sound once through the audio source.
0 Comments
Leave a Reply. |