Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

关于AkSoundEngine.SetBasePath加载路径为空的问题

0 votes
使用版本

Unity版本 2020.1.16f1

wwise 2012.1.0.7575.2069

使用AkSoundEngine.SetBasePath( bankPath )加载SoundBank,

路径为 StreamingAssets/Audio/GeneratedSoundBanks/Android/

SetBasePath返回错误代码

AK_PathNotFound

在Unity编译器中正常加载SoundBank,但是编辑到安卓手机中一直出现

AK_PathNotFound错误

SoundBank已经确定存在于 StreamingAssets/Audio/GeneratedSoundBanks/Android/

路径中,且安卓加载路径为

"jar:file://" + Application.dataPath + "!/assets/" + "SoundbanksInfo.xml";

但是依然在安卓实机中出现路径为找到的错误

请问此问题如何解决呢
asked May 7, 2021 in Feature Requests by yangzhi w. (100 points)

1 Answer

0 votes
I think you can already use Application.streamingAssetsPath, and also I've noticed recently that SetBasePath and AddBasePath behave differently, maybe try both.
answered Feb 23, 2022 by R.A. (150 points)
...