- Home /
FMOD and www error in recent Unity builds
I'm loading up audio using WWW using something like this:
var www = new WWW("file://"+fullPath);
var clip = www.GetAudioClip(false, true);
This worked fine up until a few Unity versions ago. Then I started getting some emtpy errors in the Console. Now on the latest, I can actually see what the error is:
Error: Cannot create FMOD::Sound instance for resource ȜB, (Operation could not be performed because specified sound/DSP connection is not ready. )
UnityEngine.WWW:GetAudioClip(Boolean, Boolean)
It's weird that I can't notice any actual problems playing the audio. Anybody else see this? Any ideas how to work around it?
The best I could think of is to add the AudioListener higher up in the script execution order (before this loading audio code happens) but I couldn't find it in my sprawling list of scripts.
Answer by nonathaj · Feb 24, 2016 at 12:49 AM
Unfortunately it looks like this is an engine bug. There is a bug on the IssueTracker out now, however it appears that Unity has marked it as fixed and users are reporting it as still an issue.
Answer by droni · Nov 18, 2016 at 07:22 PM
put this in an Ienumerator (if in start change void to Ienumerator) and put after www there a yield return www
Your answer
Follow this Question
Related Questions
Problem with streaming audio and play in trigger area 0 Answers
Trouble streaming audio from WWW: plays only part of file 1 Answer
Unload audio from external source 1 Answer
Streaming MP3s in WebGL Editor 0 Answers
Load Assets - WWW vs File 1 Answer