Quantcast
Viewing all articles
Browse latest Browse all 5

Is it possible to load an audio file at runtime?

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