Quantcast
Channel: Latest Questions by Jack-Does
Viewing all articles
Browse latest Browse all 5

Is it possible to load an audio file at runtime?

$
0
0
i need to load audio files at runtime and set them as clips in an audio source(s) currently ive gotten it to find a .wav file with WWW www = new WWW("file://" + Application.persistentDataPath +"FILE.wav"); and then set it with, clip1 = www.GetAudioClip(true, true); aud.clip = clip1; the audio source in the inspector shows a clip, but its empty (nothing to play). is it even possible to load an audio file from a persistent data path? or am i just out of luck?

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>