Unity www Loading local audio in iOS错误
Unity www Loading local audio in iOS error
错误:无法为资源 \270、\216 创建 FMOD::Sound 实例,(无法执行操作,因为指定的 sound/DSP 连接未就绪。)
iOS本地音频路径:var/mobile/Containers/Data/Application/A8A2C6B9-90CB-4400-A3E3-5B531CE92D45/Library/Caches/GHmsc/b18156b9-2085-4117-9c42-625ec415b691.mp3
IEnumerator LoadAudio()
{
www = new WWW("file://" + "var/mobile/Containers/Data/Application/A8A2C6B9-90CB-4400-A3E3-5B531CE92D45/Library/Caches/GHmsc/b18156b9-2085-4117-9c42-625ec415b691.mp3");
yield return www;
if (www.error == null)
{
AudioClip audio = GetComponent<AudioClip>();
audio = www.audioClip;
}
}
使用的版本是5.3.5
错误:无法为资源 \270、\216 创建 FMOD::Sound 实例,(无法执行操作,因为指定的 sound/DSP 连接未就绪。)
iOS本地音频路径:var/mobile/Containers/Data/Application/A8A2C6B9-90CB-4400-A3E3-5B531CE92D45/Library/Caches/GHmsc/b18156b9-2085-4117-9c42-625ec415b691.mp3
IEnumerator LoadAudio()
{
www = new WWW("file://" + "var/mobile/Containers/Data/Application/A8A2C6B9-90CB-4400-A3E3-5B531CE92D45/Library/Caches/GHmsc/b18156b9-2085-4117-9c42-625ec415b691.mp3");
yield return www;
if (www.error == null)
{
AudioClip audio = GetComponent<AudioClip>();
audio = www.audioClip;
}
}
使用的版本是5.3.5