How to change AudioClip load type, which was loaded from drive?
I'm making a game based on audio. I want to allow users to play the game with their own music, so it must loads audio files from drive. The problem is that I want to provide the best quality of music, so the AudioClip load type must be "streaming". (because it is method without lossy compression (i've heard))
This code below works good, but it always sets the load type to "decompress on load". Changing the second argument of GetAudioClip function does not resolve the problem. Is there any other method of loading audio files from drive or some tricky way to change the load type?
WWW audioLoader = new WWW(path);
while (!audioLoader.isDone) Debug.Log("Uploading...");
AudioClip audioClip = new AudioClip();
audioClip = audioLoader.GetAudioClip(false, false, AudioType.WAV);
Debug.Log(audioClip.loadType.ToString()); //Always returns "decompress on load"
Your answer
Follow this Question
Related Questions
AudioClip.GetData not working in WegGL Build. 2 Answers
Precise metronome problem 1 Answer
[Partially Solved] Play Random Song 1 Answer
Converting the .wav file name in Audio Source to a string 1 Answer
Audio Cutting Out Unexplainably 1 Answer