Stream multiple audio files

I have five audio from 101.ogg to 105.ogg, how to stream those audio when I step inside a trigger area and play random those.

1 Answer

1

Create a script with 5 AudioSources.
Then call play on each AudioSource as you need.

Thank for answer, but I need to stream 5 five audios from a web. Something like this public String[] ROOM = {"101","102","103","104","105"}; void Awake() { for(int i = 0; i < 5; i++) { audio_room = "..../" + ROOM + ".ogg"; <em><em>WWW www = new WWW(audio_room*);</em></em> <em>audio.clip = www.GetAudioClip(false,true);</em> <em>_}</em> <em>}*</em> <em>But it doesn't work._</em>