Error FMOD::Sound instance - no sound is being played from AssetBundle
Hello, I would like to ask help regarding my audio issue, I'm currently using Unity 5.4.4f1.
A problem occurs when streaming audio assets from the AssetBundle - No sound is being played even if the clip is being loaded to play the audio.
The Error message displayed in Unity Editor::
Error: Cannot create FMOD::Sound instance for resource archive:/CAB-a61ecea0bd4cf006255ec4fbd69f005a/CAB-a61ecea0bd4cf006255ec4fbd69f005a.resource, (File not found. )
UnityEngine.AudioSource:Play()
<ChangeBGM>c__Iterator166:MoveNext() (at Assets/Scripts/Shareds/SoundManager.cs:357)
Once the new audio asset from AssetBundle gets streamed. the error above is thrown when Play() is called.
Below is my ChangeBGM method where I call Play():
IEnumerator ChangeBGM(ChangeBGMSettings settings)
{
var fade = settings.fade;
var source = fade.source;
StartCoroutine(Fade(source, fade.outTime, source.volume, fade.targetVolume));
yield return new WaitForSeconds(fade.outTime);
source.Stop();
source.clip = settings.clip;
source.loop = true;
source.Play(); //this is where problem occurs
StartCoroutine(Fade(source, fade.inTime, source.volume, 1));
}
This error happens intermittently and when this happens, no background music plays.
Did you ever fix this? I seem to be having the same issue in 2017.3
Your answer
Follow this Question
Related Questions
Play sound within limited region 2 Answers
Why won't my second Audio Source play? 0 Answers
How to reduce delay when playing sound 0 Answers
Play audio clip 1 Answer
Pick Up Sound 0 Answers